[jdom-interest] Validation Errors

philip.nelson at omniresources.com philip.nelson at omniresources.com
Mon Jun 4 05:59:19 PDT 2001


I guess you'll have to send the document and the dtd for us to look at.  The
error you are reporting is coming from SAX and the underlying parser and is
not JDOM related at all.

-----Original Message-----
From: Shari McGuirl [mailto:shari at mineit.com]
Sent: Monday, June 04, 2001 3:34 AM
To: jdom-interest at jdom.org
Subject: Re: [jdom-interest] Validation Errors


The XML document is valid w.r.t. the DTD(or so XML spy says... ).  The DTD
is being found at least as well as the elements JD0002 & JD0001 are allowed.
And, JD0003 exists and is happily accepted by XML spy.
 
Cheers,
Shari

----- Original Message ----- 
From: philip.nelson at omniresources.com
<mailto:philip.nelson at omniresources.com>  
To: shari at mineit.com <mailto:shari at mineit.com>  ; jdom-interest at jdom.org
<mailto:jdom-interest at jdom.org>  
Sent: Friday, June 01, 2001 7:34 PM
Subject: RE: [jdom-interest] Validation Errors

The error is a simple validation error.  You must have a JD0003 element
required somewhere in the DTD and it's not in the xml document.

-----Original Message-----
From: Shari McGuirl [mailto:shari at mineit.com]
Sent: Friday, June 01, 2001 6:51 AM
To: jdom-interest at jdom.org <mailto:jdom-interest at jdom.org> 
Subject: [jdom-interest] Validation Errors


I've read most of the information on validation in the archives but I still
have a problem with validating a document.  I have a valid XML document &
corrosponding DTD but I keep on getting errors when I am trying to build a
document from it with valid being set to true.  I noticed that the
xercies.jar file must be at the proper spot in my classpath (before any
other parsers), which is done.
 
Do you know what is going on here?  I'm new to JDOM and I'd really
appreciate any help on this one.
 
Cheers,
Shari
 
----------------------------------------------------------------------------
----
org.jdom.JDOMException: Error on line 1: An element with the identifier
"JD0003" must appear in the document.
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:407)
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:428)
        at CPEX2.CPEXTranslator.readCPEX(CPEXTranslator.java:57)
        at CPEX2.Tester.main(Tester.java:25)
Root cause: org.xml.sax.SAXParseException: An element with the identifier
"JD0003" must appear in the document.
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1008)
        at
org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(X
MLValidator.java:1250)
        at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
.java:1028)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1255)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:395)
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:428)
        at CPEX2.CPEXTranslator.readCPEX(CPEXTranslator.java:57)
        at CPEX2.Tester.main(Tester.java:25)
----------------------------------------------------------------------------
----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010604/300444eb/attachment.htm


More information about the jdom-interest mailing list