xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Buroff" <...@lucent.com>
Subject Fw: schema question
Date Wed, 15 Dec 1999 13:48:25 GMT
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"

  <element name="MAIN">
          <archetype name="Main">
                  <element ref="OTHER"/>
                  <attribute name="xmlns"/>

  <archetype name="Other" content="empty"/>

  <element name="OTHER" type="Other"/>

and this xml file:
  <?xml version="1.0" encoding="UTF-8"?>

  <MAIN xmlns="play2.xsd">
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

View raw message