Questions tagged [xml-parsing]

An XML parser goes through text documents containing XML trees and allows the information in the hierarchy to be used. Use this tag for problems implementing an XML parser or generated by the use of an existing parser in a given language.

An XML parser goes through text documents containing XML trees and allows the information in the hierarchy to be used. Use this tag for problems implementing an XML parser or generated by the use of an existing parser in a given language.

An XML parser converts an XML document into an XML DOM object - which can then be manipulated with JavaScript. All modern browsers have a built-in XML parser.

The XML document specification places requirements on what an XML processor must do and not do, but the application is outside its scope. The processor (as the specification calls it) is often referred to colloquially as an XML parser.

13856 questions
2
votes
3 answers

Android Cannot Resolve Menu Item

I am working on an RSS Reader for Android and I have encountered a problem when adding a menu item. I wanted to create an item to refresh the feed manually, but I get an error "Menu.Item cannot be resolved to a type". The error is here: public…
Courtney Stephenson
  • 912
  • 2
  • 18
  • 43
2
votes
1 answer

org.xml.sax.SAXParseException: Premature end of file

I'm using Java 6, trying to parse this namespace-less XML ... 1000.0
Dave
  • 15,639
  • 133
  • 442
  • 830
2
votes
3 answers

Can we pass whole data in webview

I am new in android development.i have to parse data from xml.my xml url is- http://mobileecommerce.site247365.com/admin/catdata.xml i am able to success parse cat_desc data.Can i show whole data in webview or webview can display only url?
arpit
  • 555
  • 1
  • 7
  • 25
2
votes
2 answers

Is there a quick way to get an XML element from a path?

Is there a quick way to take this block of XML and extract the value of "version"? BULK_EXTRACTOR 1.0.3 GCC…
vy32
  • 28,461
  • 37
  • 122
  • 246
2
votes
4 answers

Null pointer when parsing camelContext.xml file during startup

This is an intermittent problem, roughly 4/5 starts hit null pointer. Camel-Context.xml is below. Error: 2011-10-18 08:31:25,245 [main ] INFO MainSupport - Apache Camel 2.8.0 stopping Exception in thread "main"…
Bevo
  • 530
  • 5
  • 17
2
votes
4 answers

How do I convert XML into a java value object?

What kind of open-source libraries are available to convert XML into a java value object? In .Net, there is a way to easily do this with xml serialization and attributes. I would imagine there some parallel in java. I know how to do this with a DOM…
Kevin
  • 7,856
  • 11
  • 35
  • 40
2
votes
2 answers

Copy parts of XML file based on attribute value

I've a large xml file and need to create a partial 'copy' of this file. (Using C#) I need to keep the same xml structure, but only need the parts where a condition is 'true'. An example structure:
John Doe
  • 9,843
  • 13
  • 42
  • 73
2
votes
0 answers

Parsing XML into SQLite Database in Android

This is my first Android project. I am supposed to parse an rss feed from the internet and put it into a SQLite database for offline access to the feed's posts. I have followed the xml parsing tutorial by Coding Green Robots and I have followed a…
zr00
  • 528
  • 1
  • 7
  • 20
2
votes
0 answers
2
votes
1 answer

Android XML parsing using SAX Parser

I have been trying to parse this ( http://app.calvaryccm.com/mobile/android/v1/devos) URL using a SAX parser found here: http://android-er.blogspot.com/2010/05/simple-rss-reader-iii-show-details-once.html I have been working on how to handle the…
Courtney Stephenson
  • 912
  • 2
  • 18
  • 43
2
votes
2 answers

xpath: All nodes with exceptions?

This is my first foray into xpath and I'm failing miserably. Consider something like this: Retain Retain
balin
  • 1,554
  • 1
  • 12
  • 26
2
votes
3 answers

PHP XMLReader parser error : xmlParseCharRef: invalid xmlChar value

I'm parsing a very large Xml files, so I need to use the XMLReader of PHP. They cannot be modified from the source. So they have to be parsed as they are. The problem is that the documents contain html chars "&#" inside that the reader detect as not…
Jenemj
  • 25
  • 5
2
votes
1 answer

How to fix unreadable XML response when calling a SOAP web service with Java?

calling soap web service I have a soap web service to call, here is my code: private List getGuarantyList(String nationalId, String centerBankCode) throws IOException{ try { fixHttpsHandler(); } catch…
2
votes
0 answers

How to add custom String to List jaxb xml adapter to an xsd generated class attribute

We have been using jaxb for a long time to unmarshal XML into POJOs that we can use within our system. However, only recently I found an issue with how jaxb is parsing the xml provided data and I would like to override that behavior by implementing…
CjRobin
  • 161
  • 1
  • 1
  • 14
2
votes
0 answers

writing Collada object in python

I imported .dae file in python using pycollada package and edited its animation class and it worked as I want but when I wrote the object as a new .dae file using write() function the changes that I made didn't save and vscode formatter didn't…
safe
  • 21
  • 2