I have a question on XML schema. Please excuse me if it is a stupid question.
I'm new to schema. Also, if this is not the correct group to send the question
to, please direct me to the correct one.
 
Consider the following schema file:
 
<?xml version="1.0" encoding="UTF-8"?>
<!-- <!DOCTYPE schema SYSTEM "structures.dtd"> -->
<!DOCTYPE schema PUBLIC "-//W3C/DTD XML Schema Version 1.0//EN"
                        "http://www.w3.org/XML/Group/1999/09/23-xmlschema/struct
ures/structures.dtd">
<schema>
 
<element name="MAIN">
        <archetype name="Main">
                <element ref="OTHER"/>
                <attribute name="xmlns"/>
        </archetype>
</element>
 
<archetype name="Other" content="empty"/>
 
<element name="OTHER" type="Other"/>
 
</schema>
 
and this xml file:
 
<?xml version="1.0" encoding="UTF-8"?>
 
<MAIN xmlns="play2.xsd">
        <OTHER/>
</MAIN>
 
When I parse with xml4j 3.0.0 EA3, I get the following error message.
 
No validator for datatype Other
play2.xml: 579 ms (2 elems, 1 attrs, 3 spaces, 0 chars)
 
What am I doing wrong? TIA.
 
Steve Buroff

Reply via email to