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.
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