|
Hi
I try to use xerces parser to validate xml schema
for Biztlak xsd.
I tried to use:
parser.setFeature("http://xml.org/sax/features/validation",
true );
parser.setFeature("http://apache.org/xml/features/validation/schema", true ); parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking",true); but I got an errors
How can I do it
schema: schema.xsd
<Schema
xmlns="urn:schemas-microsoft-com:xml-data" name="Root"
xmlns:d="urn:schemas-microsoft-com:datatypes">
<element type="Main" maxOccurs="*"
minOccurs="0"/>
<ElementType name="Sub" content="textOnly"
order="many" model="closed" d:type="string"></ElementType>
</Schema>
xml: xml.xml
<?xml version="1.0"
encoding="utf-8"?>
<Root> <Main>
<Sub>yyy</Sub>
</Main>
</Root>
|
- Re: xml schema and Biztlak Saar Serur
- Re: xml schema and Biztlak Brian Madigan
- Re: xml schema and Biztlak Simon Kitching
