[jdom-interest] JDOM SaxBuilder Error
David.Blatchford at usa.alcatel.com
David.Blatchford at usa.alcatel.com
Wed May 30 11:57:29 PDT 2001
Jason,
It doesn't work on the latest. The XML files look like this:
Base.xml:
---------------
<!DOCTYPE EqpDomain [
<!ELEMENT EqpDomain (NE)+>
<!ELEMENT NE (Root)+>
<!ATTLIST NE Type CDATA #REQUIRED>
<!ELEMENT Root (list+, def+, entity+)>
<!ATTLIST Root
name CDATA #REQUIRED
BASE CDATA #REQUIRED
>
<!ELEMENT def (command+)>
<!ATTLIST def
OpCategory CDATA #REQUIRED
availrules CDATA #REQUIRED
>
<!ELEMENT command EMPTY>
<!ATTLIST command
ID CDATA #REQUIRED
OpAction CDATA #REQUIRED
>
<!ELEMENT entity (Release*)>
<!ATTLIST entity
EqpType CDATA #REQUIRED
>
<!ELEMENT parm EMPTY>
<!ATTLIST parm
name CDATA #REQUIRED
>
<!ELEMENT list (parm+)>
<!ATTLIST list
OpCategory CDATA #REQUIRED
>
<!ELEMENT Release (list*, def*)>
<!ATTLIST Release
Version CDATA #REQUIRED
Valid CDATA #REQUIRED
>
<!ENTITY ext SYSTEM "D:\MyProj\ext.xml">
]>
<EqpDomain>
<NE Type="TypeA">
&ext;
</NE>
</EqpDomain>
Ext.xml:
----------
<Root name="Card" BASE="R2.0">
<list OpCategory="alm">
<parm name="eqp"/>
</list>
<def OpCategory="alm" availrules="">
<command ID="rtrv_id" OpAction="RTRV"/>
</def>
<entity EqpType="101">
<list OpCategory="dgn">
<parm name="type"/>
</list>
<def OpCategory="dgn" availrules="">
<command ID="op_id" OpAction="Operate"/>
</def>
<Release Version="R1.0" Valid="true">
<list OpCategory="alm">
<parm name="eqp"/>
</list>
</Release>
</entity>
</Root>
Like I said in my first message, the Base.xml file validates fine in
XMLSpy, and it is including Ext.xml as an external entity properly. But I
get the errors I mentioned in the first message when I try to build a
Document. Thanks!
Dave
More information about the jdom-interest
mailing list