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

PHP - Parsing xml with accents

I'm trying to parse an xml file that contains accents, but I get this error "String could not be parsed as XML". Unfortunately I can't work on the xml file, as it is downloaded from an external source, so I was wondering if there's any easy way to…
don
  • 4,113
  • 13
  • 45
  • 70
2
votes
1 answer

How to proces xml using xmltable

I have an XML containing relation data such as this value 1 value 2
Rene
  • 10,391
  • 5
  • 33
  • 46
2
votes
1 answer

Any online tool to get the value of XML nodes?

Any online tool to get the value of XML nodes? also to parse the xml?
tirenweb
  • 30,963
  • 73
  • 183
  • 303
2
votes
2 answers

read a specific tag in an xml file without using any kind of php library or extension

let's say I have an xml file how do I read a specific tag (and all the values contained in that tag) of that xml file without using any sort of php library, with just straight PHP file read and string searching. Is that possible? Thanks in advance
user765368
  • 19,590
  • 27
  • 96
  • 167
2
votes
1 answer

How to get rid of "'', hexadecimal value 0x11, is an invalid character. Line 1" in XML error, when binary chracters are put in XML?

I am getting XML parsing errors when some one puts a binary character '' in a text field. Is there any way to just encode this data in XML and decode it back when it is used by someone. My Webs service is written using PHP Should i use…
Sudhir
  • 523
  • 2
  • 6
  • 15
2
votes
1 answer

Sencha touch XML response to JSON

I have recently started a project in Sencha touch with existing Web-services. Being very new to the technology, I am facing certain issues in accomplishing some functionality. Problem I have to call login service and the request goes…
geekay
  • 1,655
  • 22
  • 31
2
votes
3 answers

xml - StreamResult - walk around spaces bug

I've just faced an interesting bug. I tried to use user.home for saving path; The thing is the user.home in win xp is starting with X:\Documents and Settings\ ... sure the spaces take their place. The exception…
user592704
  • 3,674
  • 11
  • 70
  • 107
2
votes
1 answer

Extracting text from a nested tags in XML using BeautifulSoup in python

I am trying to extract the text out of nested tags for example the xml is in the form: <ne>MediaPortal</ne> Install Guide MediaPortal Install Guide 0.…
user977815
  • 45
  • 3
  • 8
2
votes
1 answer

Unicode error when passing unicode object to XML parser

I am trying to read a gzip file which contains xml and unicode, but I'm getting an error. The code I am using is: import gzip import xml path = "index.mjml.gz" gzFile = gzip.open(path, mode='r') gzContents =…
jlconlin
  • 14,206
  • 22
  • 72
  • 105
2
votes
3 answers

Filtering XML nodes in memory without DOM?

Given a big XML I want to have PART of the XML structure in a tree in memory (THIS IS NOT DOM!!) for example given
1 2 3 7 9 2
Juan Aguerre
  • 388
  • 2
  • 7
2
votes
1 answer

How to swap two XML elements through DOM Parser/Java

I have an XML doc- yong mook kim mkyong
Abhishek Choudhary
  • 8,255
  • 19
  • 69
  • 128
2
votes
1 answer

How to remove CDATA from my xml parser?

Hi i need to remove the CDATA from the xml which i need to parse . I parse all the values but the cdata is not getting. please help me on this
harish
  • 1,755
  • 6
  • 22
  • 36
2
votes
1 answer

Android SAX XML Parser Access Enclosure Tag URL Attribute

I have created an XML parser that contains a detail view. I am reading in an RSS feed that contains an enclosure tag. I am trying to get the URL of the video file from the enclosure tag. This is what the enclosure tag looks like:
Courtney Stephenson
  • 912
  • 2
  • 18
  • 43
2
votes
2 answers

Parsing XML by TBXML works on demo project, but it doesnt work in my real project

I'm really need help with parsing XML by TBXML. I created a demo project with a view has a button,when users press this button, I just call TBXML parsing function from another class. Im doing this to test my TBXMLParsing function works correctly or…
JHHoang
  • 653
  • 1
  • 8
  • 22
2
votes
3 answers

Modifying InnerXml of a text XmlNode

I traverse an html document with SGML and XmlDocument. When I find an XmlNode which its type is Text, I need to change its value that has an xml element. I can't change InnerXml because it's readonly. I tried to change InnerText, but this time tag…
oruchreis
  • 866
  • 2
  • 12
  • 28