Re: Problem: org.xmlpull.v1.XmlPullParserException: PI must not start with xml
Tatu Saloranta <[email protected]> Tue, 3 Apr 2007 11:35:25 -0700 (PDT)
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
--- orsteglasy <[email protected]> wrote: > Hi, > > I'm trying to use ksoap2 to access .net webservices > from a midlet. My > code runs fine on emulator, but gives this error > message on phisical > device (nokia 6600): > > org.xmlpull.v1.XmlPullParserException: PI must not > start with xml Just a guess, but probably you have white space preceding xml declaration. That is illegal -- if there is an xml declaration (<?xml .... ?>), it MUST start right away, with no leading white space. This would give this particular exception. Xml declaration is not a processing instruction (just looks like one) -- no processing instruction is allowed to have name that starts with letter sequence 'x', 'm', 'l' (case insensitive). Hope this helps, -+ Tatu +- ____________________________________________________________________________________ We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/xmlpull-dev/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/xmlpull-dev/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/