Questions tagged [xmlpullparser]

Either the Android XMLPullParser, or any other XML parser implementation that uses the concept of pulling in XML events.

Either the Android XMLPullParser, or any other XML parser implementation that uses the concept of pulling in XML events.

428 questions
5
votes
3 answers

Android custom XML parser fails to resolve android namespace

I would like to get the correct way of parsing custom android tags with an XmlResourceParser. I am using Eclipse 3.6 with the android plug-in, and I would like some attributes like the name be expanded with the full string from strings.xml. Here is…
Mikaël Mayer
  • 10,425
  • 6
  • 64
  • 101
4
votes
1 answer

How to create a LayoutInflater Given XmlPullParser as input?

I've a String Input that contains an Layout.xml with String Fromat. // String that contains the Layout.xml : String concat ; // Create the XmlPullParser from the String format XmlPullParserFactory factory =…
ghost rider3
  • 448
  • 1
  • 5
  • 17
4
votes
1 answer

getting stringXmlContent and write then saved in to .xml file stored in sdcard in android how can possible?

I am implementing read and write xml in resource folder. Reading is ok, how can I modify this xml file save as sdcard: EditText myXmlContent = (EditText)findViewById(R.id.my_xml); String stringXmlContent; try { stringXmlContent =…
Narasimha
  • 3,802
  • 11
  • 55
  • 83
4
votes
1 answer

How can I parse an Android layout xml file to create a replica for help pages?

I want to take layout files for activities and use them to create an image of that activity on a help page. I want to draw the activity replica on a canvas. I would like the image of the activity shown on the canvas to be directly linked to the…
TTransmit
  • 3,270
  • 2
  • 28
  • 43
4
votes
1 answer

Android dalvik conversion for xmlpullparser

I'm developing an Android app and for one component I can test outside of Android as it does not use any Android code. It uses xstream and I have the following libraries include: xstream1.4.6 xpp3-min-1.1.4c xmlpull-1.1.3.1 When I unit test my code…
Neil Walker
  • 6,400
  • 14
  • 57
  • 86
4
votes
1 answer

KXmlParser throws "Unexpected token" exception at the start of RSS pasing

I'm trying to parse an RSS feed from Monster on Android v.17 using this URL: http://rss.jobsearch.monster.com/rssquery.ashx?q=java To get the content I'm using HttpUrlConnection in the following fashion this.conn = (HttpURLConnection)…
Bostone
  • 36,858
  • 39
  • 167
  • 227
4
votes
1 answer

Why is Android XmlPullParser REALLY slow on my older device?

I have implemented a simple XML parser using the official Android guide on the XmlPullParser to parse a very simple and short XML file (120 lines, 10.5Kb). On my HTC One X running Android 4.1.1, it takes a fraction of a second to parse it. But on my…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
4
votes
2 answers

Best way to extract a node and all of its children using scala.xml.pull?

I'm using scala.xml.pull to parse through a vary large xml file. This works great for event processing, but what I want to do is have my parser cough up a mini-document for particular nodes and I don't see an easy way to do this, or at least not a…
Jim B.
  • 4,512
  • 3
  • 25
  • 53
4
votes
0 answers

Is there a way to list the available XMLPullParser features on the current Android device?

I'm using XMLPullParser to parse XML, and I want to use the XmlPullParser.FEATURE_PROCESS_DOCDECL feature. This works great on my Galaxy Nexus / JB, but on the emulator with Froyo, I get an "unsupported feature" exception. The feature is not…
XGouchet
  • 10,002
  • 10
  • 48
  • 83
3
votes
1 answer

Parsing with XmlPullParser from SDcard

what I'm doing wrong? InputStream in = new FileInputStream("/sdcard/new.xml"); XmlPullParser parser1 = Xml.newPullParser(); parser1.setInput(in, "utf-8"); ok. try parsing each tag of xml code while (parser1.getEventType()!=…
yuriy
  • 264
  • 1
  • 3
  • 11
3
votes
1 answer

XMLPullParser parsing from internet in asynctask error in Android

I'm developing an application on the Android system which involves parsing some xml stuff. The problem is that the program is crashing and I've haven't found out the problem. I have an Activity which has a private class which extends asynctask. This…
Johan S
  • 3,531
  • 6
  • 35
  • 63
3
votes
4 answers

How to parse XML using XmlPullParser

I want to use the Java XmlPullParser to parse an XML file like this: text1 text3 text4 text5 I want only text1 as…
Romi
  • 4,833
  • 28
  • 81
  • 113
3
votes
1 answer

Scala XML pull parser and location

I have been asked to write a utility to search a large number of XML files for elements with a missing attribute. The department responsible cannot just make the attribute mandatory in the DTD because it will break hundreds of files. They want to…
Ralph
  • 31,584
  • 38
  • 145
  • 282
3
votes
1 answer

Android Studio XmlPullParser parsing multiply nested elements

My XML file is something like this: 1 nested 1 2 3
Ivan Z.
  • 59
  • 1
  • 10
3
votes
2 answers

Android's XMLPullParser getAttributeValue is removing leading zeros from string

I have an XML document that contains strings with leading zeros. When I'm iterating the XML file with XmlResourceParser I have noticed that strings with leading zeros are modified removing the leading zeros when calling getAttributeValue. This…
steve
  • 303
  • 1
  • 4
  • 11
1 2
3
28 29