[jdom-interest] DTD Error

Corcos Igal CorcosI at BanqueLaurentienne.ca
Tue Mar 20 09:49:17 PST 2001


I know this may not be exactly on the topic of JDOM but I am getting the
following error when I try to parse a document using SAXBuilder:

org.jdom.JDOMException: Error on line 48 of document
file:///C:/WorkingJava/Distribution/com/blc/Application/Aggregation/MainServ
let/cecommon.dtd: The parameter entity reference "%AcctIdAlias;" must end
with the ';' delimiter. 	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:403) 	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:533) 	at
SAXTest.main(SAXTest.java:17) 
Root cause: org.xml.sax.SAXParseException: The parameter entity reference
"%AcctIdAlias;" must end with the ';' delimiter. 	at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1060) 	at
org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDScanner.
java:660) 	at
org.apache.xerces.framework.XMLDTDScanner.scanEntityDecl(XMLDTDScanner.java:
2646) 	at
org.apache.xerces.framework.XMLDTDScanner.scanDecls(XMLDTDScanner.java:1449)
at
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc
anner.java:2199) 	at
org.apache.xerces.framework.XMLDocumentScanner.access$000(XMLDocumentScanner
.java:86) 	at
org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML
DocumentScanner.java:883) 	at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381) 	at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952) 	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:395) 	at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:533) 	at
SAXTest.main(SAXTest.java:17)


I understand that there is a syntax error with my DTD but I am not very
experienced with DTDs and so I am unable to determine the exact problem.

Here is the line which causes the error in the DTD:

<!ENTITY %AcctIdAlias "(AcctId, AcctType)";>

<!ELEMENT DepAcctId  %AcctIdAlias;>
<!ELEMENT CardAcctId %AcctIdAlias;>
<!ELEMENT InvAcctId  %AcctIdAlias;>
<!ELEMENT OAAAcctId  %AcctIdAlias;>
<!ELEMENT OLAAcctId  %AcctIdAlias;>

Can anyone help me out?

Thanks.

-Igal



More information about the jdom-interest mailing list