Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Free XML in schema >Thread Next - Re: Free XML in schema Re: Free XML in schemaTo: NULL Date: 5/15/2008 1:30:00 PM Leon Mayne wrote: > Sorry for the delay in replying. I tried using xs:any and pointing to > the XHTML namespace: > > <xs:element name="body" minOccurs="1" maxOccurs="1"> > <xs:complexType> > <xs:sequence> > <xs:any namespace="http://www.w3.org/1999/xhtml" > minOccurs="1" maxOccurs="unbounded" processContents="skip"/> > </xs:sequence> > </xs:complexType> > </xs:element> > > But when trying to add a snippet containing the below body tag: > > <body> > <span> Well if your schema mandates the namespace http://www.w3.org/1999/xhtml then you should use it in the instance document. Otherwise the XML is obviously not valid. If you don't want to use a namespace then you need to change the schema. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
