<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META content="MSHTML 5.00.3211.1700" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=698040813-04062001>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.</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Shari McGuirl
[mailto:shari@mineit.com]<BR><B>Sent:</B> Monday, June 04, 2001 3:34
AM<BR><B>To:</B> jdom-interest@jdom.org<BR><B>Subject:</B> Re: [jdom-interest]
Validation Errors<BR><BR></DIV></FONT>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2>Shari</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:philip.nelson@omniresources.com"
title=philip.nelson@omniresources.com>philip.nelson@omniresources.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A href="mailto:shari@mineit.com"
title=shari@mineit.com>shari@mineit.com</A> ; <A
href="mailto:jdom-interest@jdom.org"
title=jdom-interest@jdom.org>jdom-interest@jdom.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, June 01, 2001 7:34
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [jdom-interest] Validation
Errors</DIV>
<DIV><BR></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=633504318-01062001>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.</SPAN></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Shari McGuirl
[mailto:shari@mineit.com]<BR><B>Sent:</B> Friday, June 01, 2001 6:51
AM<BR><B>To:</B> <A
href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</A><BR><B>Subject:</B>
[jdom-interest] Validation Errors<BR><BR></DIV></FONT>
<DIV><FONT face=Arial size=2>I've read most of the information on
validation in the archives but I still have a problem with validating a
document. </FONT><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Do you know what is going on here? I'm
new to JDOM and I'd really appreciate any help on this
one.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2>Shari</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>org.jdom.JDOMException: Error on line 1: An
element with the identifier "JD0003" must appear in the
document.<BR> at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:407)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:428)<BR>
at
CPEX2.CPEXTranslator.readCPEX(CPEXTranslator.java:57)<BR>
at CPEX2.Tester.main(Tester.java:25)<BR>Root cause:
org.xml.sax.SAXParseException: An element with the identifier "JD0003"
must appear in the document.<BR>
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1008)<BR>
at
org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1250)<BR>
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1028)<BR>
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1255)<BR>
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:380)<BR>
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:395)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:428)<BR>
at
CPEX2.CPEXTranslator.readCPEX(CPEXTranslator.java:57)<BR>
at
CPEX2.Tester.main(Tester.java:25)<BR>--------------------------------------------------------------------------------</FONT></DIV></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>