[jdom-interest] Newbie schema question

Scott Ellsworth scott at alodar.com
Thu Aug 3 11:15:21 PDT 2000

Hey, all.

Thanks to the help of others here, I now have an xml file that passes dtd 
validation, and that contains the schema goodies that I think it needs to 
have.  How can I tell whether xerces is actually validating with my schema 
when I use JDom?

(I am suspicious, as when I renamed my xml schema, I did not get any error 
messages.  This makes me feel less sanguine that it is reading the file.)

The top of the xml file says:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE RQbyScott:character SYSTEM "RQCharacter.dtd">
  xsi:schemaLocation="RQbyScott RQCharacter.xsd">

The start of the dtd is:
<!ELEMENT RQbyScott:character ( RQbyScott:statistic_list, 
RQbyScott:bonus_list, RQbyScott:battle_magic_spell_list, 
RQbyScott:rune_spell_list, RQbyScott:item_list ) >
<!ATTLIST RQbyScott:character xmlns:RQbyScott CDATA #REQUIRED >
<!ATTLIST RQbyScott:character xmlns:xsi CDATA #REQUIRED >
<!ATTLIST RQbyScott:character xsi:schemaLocation CDATA #REQUIRED >

The start of the schema is:
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://iceweasel.com/xml/RQbyScott"
         xmlns ="http://www.w3.org/1999/XMLSchema"

  <element name="character">
    <element ref="statistic_list" minOccurs='1' maxOccurs='1'/>
    <element ref="bonus_list" minOccurs='1' maxOccurs='1'/>
    <element ref="battle_magic_spell_list" minOccurs='1' maxOccurs='1'/>
    <element ref="rune_magic_spell_list" minOccurs='1' maxOccurs='1'/>
    <element ref="item_list" minOccurs='1' maxOccurs='1'/>

(I presume it is considered bad form to post a binary zip file to the list?)

Scott Ellsworth
scott at alodar.com

More information about the jdom-interest mailing list