[jdom-interest] help
Gu Xueying (Shinnie Gu)
Shinnie.Gu at iuniverse.com.cn
Tue Jul 2 01:06:10 PDT 2002
hi,
when I use jdom to build jdom document,such exception appears:
Root cause: org.xml.sax.SAXParseException: UTF-8 char -- is an XML encoding
declaration missing? at
org.apache.crimson.parser.InputEntity.fatal(InputEntity.java:1100)
at org.apache.crimson.parser.InputEntity.fillbuf(InputEntity.java:1072)
at
org.apache.crimson.parser.InputEntity.isXmlDeclOrTextDeclPrefix(InputEntity.
java:914)
at org.apache.crimson.parser.Parser2.maybeXmlDecl(Parser2.java:1009)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:486)
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:287)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:617)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:599)
at
com.iuniverse.ctp.builder.XMLCoverBuilder.getDocument(XMLCoverBuilder.java:1
109)
at
com.iuniverse.ctp.builder.XMLCoverBuilder.buildCover(XMLCoverBuilder.java:10
3)
at com.iuniverse.ctp.builder.Drawer.pdflibDraw(Drawer.java:123)
at BuilderTest.main(BuilderTest.java:50)
In fact there is already a XML encoding on the head of the xml.
Any help is appreciated.
Thanks!
Shinnie Gu
IUniverse(Shanghai)Co.,Ltd.
Tel:8621-58305001 Ext.8701
More information about the jdom-interest
mailing list