[jdom-interest] Qualified names with SAXBuilder.build(Reader reader).....
sanjay gupta
sanjaygupta at myrealbox.com
Tue Jul 23 06:47:34 PDT 2002
Hi All,
Greetings.
I need to get Elements from StringReader as inputsource, for which i use SAXBuilder.build(Reader) call, but this call throws an exception which is as follows :-
Caused by: org.xml.sax.SAXParseException: Undeclared prefix in name: "xyz:abc".
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at org.apache.crimson.parser.Parser2.processName(Parser2.java:1660)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1487)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:354)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:740)
How to overcome this, as my XML data contains qualified names.
Any tips, comments, samplecode will be of much help.
Regards,
Sanjay
Yesterday is just a memory
Tomorrow we may never see
Today is like a gift
That's why its called the present
More information about the jdom-interest
mailing list