[jdom-interest] JDOM + Xerces 2.2?
Mark Woon
morpheus at SMI.Stanford.EDU
Sun Oct 20 07:25:23 PDT 2002
Jason Hunter wrote:
>It's a Xerces error that's propagating up. I suspect you'd see the same
>error even without JDOM in the picture. Someone else may be able to
>give you a lead as to what's wrong, but to help out you might want to
>send the first few lines!
>
Here's the first two lines of the XML:
<?xml version="1.0" encoding="UTF-8"?>
<XML_File_Submissions xmlns="http://www.pharmgkb.org/schema/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.pharmgkb.org/schema/
http://www.pharmgkb.org/schema/XmlFileSubmissions.xsd" special="edit">
Does anyone have any idea why I'm getting the exception?
Thanks,
-Mark
>
>-jh-
>
>Mark Woon wrote:
>
>
>>Can anyone tell me if there's a compatibility problem with JDOM and
>>Xerces 2.2? After switching from 1.4 to 2.2, I'm seeing:
>>
>>Error on line 2: Document is invalid: no grammar found.
>>org.jdom.JDOMException: Error on line 2: Document is invalid: no grammar
>>found.
>> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:342)
>> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:654)
>> at org.pharmgen.xml.XMLProcessor.parseXMLFile(XMLProcessor.java:93)
>> at org.pharmgen.xml.XMLProcessor.parseXMLFile(XMLProcessor.java:72)
>> at org.pharmgen.xml.XMLProcessor.main(XMLProcessor.java:1183)
>>Caused by: org.xml.sax.SAXParseException: Document is invalid: no
>>grammar found.
>> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:331)
>> ... 4 more
>>
>>Any help would be greatly appreciated.
>>
>>Thanks,
>>-Mark
>>
>>_______________________________________________
>>To control your jdom-interest membership:
>>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>>
>>
More information about the jdom-interest
mailing list