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
4 answers

how to parse xml in from a WinHttp.WinHttpRequest object?

I have a standalone VBScript which connects to server and gets the response text(as XML) in a WinHttpRequest object. Now, my question is how do I parse the XML content in it. When I post a request(strPostData) I need to parse the response XML. What…
Srinivas
  • 545
  • 5
  • 9
  • 16
2
votes
3 answers

Improving performance of deserializing from large XML strings

i am parsing a big xml file (1 MB) in my WP7 App. The file is part of the project, so its not loaded through the web. Unfortnuately it takes very long, ca. 3 seconds, to get the content i need. I have read, that the problem is the xml…
2
votes
1 answer

Get XML response value with GDataXML

after a HTTP Post I retrieve an xml response like the following: admin 0 0
s4lfish
  • 633
  • 1
  • 11
  • 25
2
votes
4 answers

How to generate XML file dynamically using C on Linux platform?

I just want to create a XML file (I have XML schema for the file) at a given location, and write a structure into it. For instance struct my_data { int no; char *input ; char *output; char * descritpiton; char *time; }; "Expat" and "Xerces" are two…
mujahid
  • 691
  • 2
  • 12
  • 21
2
votes
1 answer

Seemingly random SAX output error

I'm creating an Android application that is supposed to use SAX (javax.xml.parsers.SAXParser) to parse an XML file containing information about various locations, so that these locations can then be displayed as points on a map; unfortunately I'm…
Wolvern
  • 23
  • 1
  • 3
2
votes
3 answers

Issue with parsing big xml files in Android

Are there any efficient XML parsers for Android to parse large XML files efficiently. The XML document has HTML text inside an element without CDATA. Currently I am using SAX Parser in Android. I am appending the Strings when it breaks at HTML…
Sanket Patel
  • 135
  • 1
  • 2
  • 9
2
votes
1 answer

NSXMLParserDelegate Methods Not Being Called

I've done an NSXML Parser before, but for some reason this time my NSXMLParserDelegate methods aren't being called when I call parse. Here's where I call parse: - (void)parseXMLFile:(NSString *)pathToFile { NSURL* xmlURL = [NSURL…
Thorax
  • 53
  • 5
2
votes
2 answers

Parsing PHP embedded in XML

I read this question/answer however there wasn't any mention of it being a "bad idea", and unfortunately any search query with the words parse, xml, and php typically yield information about parsing XML with PHP (via SimpleXML or whatever) Short…
Dan Lugg
  • 20,192
  • 19
  • 110
  • 174
2
votes
3 answers

xml parsing using SAXParser

I am working with one application in which SAXparsing is placed. To get the City & State name from latitude and longitude I'm using Google API. Google API url google api I want to get long_name short_name & type of header Tag address_component . All…
Hitarth
  • 1,950
  • 3
  • 27
  • 52
2
votes
1 answer

How change file coding from windows-1251 to utf-8

I have xml file and I need to convert the text that I get from it: I just start to write code, but I don't know how to realize this: string text = File.ReadAllText(path); XDocument documentcode = XDocument.Load(text);
revolutionkpi
  • 2,632
  • 10
  • 45
  • 84
2
votes
3 answers

Get the values of attributes with namespace, using Nokogiri

I'm parsing a document.xml file using Nokogiri, extracted from .docx file and need to get values of attributes with names, like "w:val". This is a sample of the source XML:
Hroft
  • 3,887
  • 4
  • 19
  • 24
2
votes
1 answer

SyndFeedInput().build in Java: Cannot access org.jdom.Document class file for org.jdom.Document not found

i'm using Netbeans IDe 7.0.1. I'm testing a program in Java which is using ROME in order to parse the xml. public class RSSNew { public static void main(String[] args) throws Exception { URL url = new URL("RSS URL"); …
programmer
  • 4,571
  • 13
  • 49
  • 59
2
votes
1 answer

Stax: How start to parse from a certain position of XML file?

I have a very big XML file (500Mb). Is it possible to keep track of the position of the last parsed element in this case? So, say, if I have successfully parsed half of it or jvm has crashed abruptly, I can start immediately from the position where…
user860418
  • 63
  • 1
  • 5
2
votes
2 answers

Grab data inside code

So I have gotten the website source, and now im trying to grab the data inside the tags. How would I go about doing that. Thanks For example, value Set a string to value
Pat
  • 649
  • 1
  • 8
  • 24
2
votes
1 answer

Read "%" sign from xml in iphone

I have searched for my prob and found the various solution on web like : Using the British pound sign in an XML feed to be read by an iPhone NOt able to parse "&" Special Characters in NSString from HTML This and here also but it is not fruitful…
NSException
  • 1,268
  • 3
  • 14
  • 28