Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: XSD schemas and HTML >Thread Next - Re: XSD schemas and HTML Re: XSD schemas and HTMLTo: NULL Date: 8/2/2005 9:09:00 AM Hi Patrick,
I tried your schema in XmlSpy 2004 rel. 4, it works fine and the xml
document can be validated. Can you try this?
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Description">
<xs:complexType mixed="true">
<xs:sequence>
<xs:any
namespace="http://www.w3.org/1999/xhtml" processContents="lax"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="ReadFromDB"
type="xs:boolean" use="required"/>
<xs:attribute name="id" type="xs:integer"
use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSPY v2004 rel. 4 U
(http://www.xmlspy.com)-->
<Description xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="c:\Untitled1.xsd" ReadFromDB="1" id="0">
<ol xmlns="http://www.w3.org/1999/xhtml">
<li xmlns="http://www.w3.org/1999/xhtml">No Exception: OR</li>
<li xmlns="http://www.w3.org/1999/xhtml">Exception:</li>
</ol>
<p xmlns="http://www.w3.org/1999/xhtml"></p>
<br xmlns="http://www.w3.org/1999/xhtml"/>
<br xmlns="http://www.w3.org/1999/xhtml"/>
</Description>
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
