Skip to content Skip to sidebar Skip to footer

Why Is Xmlpullparser Delivering Two Start_document Events?

In an Android app I have an XmlPullParser, XmlResourceParser xrp = c.getResources().getXml(rid); ... (as you can see it's from an Android binary XML resource) ... and the first tw

Solution 1:

From the XMLPullParser docs:

Signalize that parser is at the very beginning of the document and nothing was read yet.

So I'd imagine that since it hasn't read anything (no start tags, end tags, end of document, etc.) it stays in the state?

Post a Comment for "Why Is Xmlpullparser Delivering Two Start_document Events?"