Re: epilog error
Stefan Haustein <[email protected]> Wed, 31 Mar 2004 01:38:49 +0200
| Newsgroups | gmane.comp.java.enhydra.kxml |
|---|---|
| Organization | University of Dortmund |
| Message-ID | <[email protected]> |
Hu James-W16463 wrote: > Hi, > > I am using one of your example code: MyXmlPullApp.java (though I moved the main() out to MyDriver.java, and passing byte[] data directly). > After running it, I got the following error. I am wondering if you could help me. > Thank you very much. The error seems to indicate that the parsed file contains an unicode 0 character at the end, and the parser does not accept it. I do not know if this is a problem with the file or the parser (if unicode 0 is legal in the XML epilog). BTW: The parser you are using is an XmlPull parser, but not kXML. Best, Stefan > Regards, > -James > > -------------------------------------------------------------------------------------------------------------------------- > parser implementation class is class org.xmlpull.mxp1.MXParserCachingStrings > > Exception in thread "main" org.xmlpull.v1.XmlPullParserException: in epilog n > whitespace content is not allowed but got \u0 (position: END_TAG seen ...</de > iption>\r\n</media>\u0... @8:10) > at org.xmlpull.mxp1.MXParser.parseEpilog(MXParser.java:1579) > at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1349) > at org.xmlpull.mxp1.MXParser.next(MXParser.java:1061) > at ParserManager.processDocument(ParserManager.java:135) > at ParserManager.parseDDFile(ParserManager.java:52) > at MyDriver.main(MyDriver.java:41) > > here is my xml file: > <media xmlns="http://www.wapforum.org/xmlns/dd"> > > <type>image/gif</type> > > <ObjectURI>http://www.motbrw.com/ota/cod/bugs.gif</ObjectURI> > > <size>5228</size> > > <name>Bugs Bunny</name> > > <version>1.0</version> > > <description> This is an image which has a Animated Bugs bunny cartoon </description> > > </media> > > here is the hex data passing in (only first 8 bytes and last 10 bytes are shown here) > > 3c > 6d > 65 > 64 > 69 > 61 > 20 > 78 > ............... > > 3c > 2f > 6d > 65 > 64 > 69 > 61 > 3e > d > a > > >