Parsing is the process of analyzing a string of symbols, with the intention of extracting data from it. XML parsing is specifically aimed at XML formatted strings
Questions tagged [parsexml]
90 questions
7
votes
2 answers
Save XML response from GET call using Python
I'm trying to create a realtime report using an API that allows me to grab the data I need and returns it in XML format. What I want to know is, after receiving the response, how can I save it to an .xml file locally? Or cache it, that way I can…

Julio Montes
- 71
- 1
- 1
- 6
5
votes
1 answer
Parsing xhtml with lxml python
Small problem, really stuck here, I do not understand what's happening, I just want to parse a normal xhtml from the web, nothing special...
Here's the error:
File "class/page.py", line 85, in xslParse
doc = lxml.etree.fromstring(self.content)
…

hgates
- 209
- 5
- 12
4
votes
1 answer
jquery parse xml with unlimited child level category
I'm fairly new on parsing xml with jquery, so if my question looks like noobish, please forgive me.
I have an xml it contains my recursive categories. Some of them has sub categories, some of them not. It has some deep level categories under sub…

HddnTHA
- 1,041
- 3
- 19
- 38
3
votes
1 answer
Parsing XM returns URI is not absolute
I am trying to parse the following soap response, but the code returns following exception
SEVERE: java.lang.IllegalArgumentException: URI is not absolute
at java.net.URI.toURL(URI.java:1095)
at javax.xml.bind.JAXB.toSource(JAXB.java:306)
…

J888
- 1,944
- 8
- 42
- 76
3
votes
1 answer
How to add jquery Xml parsing functionality in older Jquery version file?
I have older version of Jquery in my application. i need ParseXML functionality to be included in it ( If i add the newwer version of jquery 1.8.2 the application is showing script error ,since lot of many other dependant plugins are written using…

ramputan
- 145
- 1
- 7
3
votes
3 answers
What does `$xml = $( xmlDoc )` do?
In javascript / jQuery, the example on this page contains the following code which I am struggling to understand;
var xml = "RSS Title ",
xmlDoc = $.parseXML( xml ),
$xml = $( xmlDoc…

Nigel Alderton
- 2,265
- 2
- 24
- 55
2
votes
2 answers
R parsing XML tree with hierarchical data to dataframe
I am trying to parse some xml documents in R XML--. DataFrame. What I want to do is flatten the XML tree so that I get one row in data frame per each, child. Also I want for each row to contain data from parent
example:
…

MrTommek
- 103
- 9
2
votes
1 answer
python-xml: Not well-formed (invalid token) - xml.etree utf mode
I have following XML file structure:

add-semi-colons
- 18,094
- 55
- 145
- 232
2
votes
1 answer
Prevent jQuery from manipulating dynamically inserted XML strings
This answer briefly touched on this topic, but did not mention the problem I am having.
Take a look at this fiddle.
As you can see from the alert message, jQuery made a number of changes I was not expecting:
collapsed the original …

AndyPerlitch
- 4,539
- 5
- 28
- 43
2
votes
2 answers
Read XML string from ScriptSharp
I am trying to convert a XML string to a XML object in order to traverse its attributes and child nodes.
Something like this in regular C#:
http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.loadxml.aspx
However the System.Xml library…

joaoguerravieira
- 169
- 1
- 6
2
votes
1 answer
Parsing XML in jQuery with/out parseXML?
Both are working... so why do i need parseXML ?
var x='\
\
\
';
alert($($.parseXML(x)).find("item[k='1']").attr('p1')); //aaa
alert($(x).find("item[k='1']").attr('p1'));…

Royi Namir
- 144,742
- 138
- 468
- 792
1
vote
1 answer
How to ignore corrupted xml row with parse_xml in snowflake
Function parse_xml fails with message Error parsing XML: not an XML element, pos 1, this is due to one invalid xml entry, is there anyway to ignore the invalid one and proceed.
Here is a background
I get's a xml data into snowflake table through a…

Srini
- 35
- 6
1
vote
1 answer
Parse a bit complex XML using Python module xml.etree.ElementTree and store the values in a List
I have below XML file I want to parse it using ElementTree, I want specific fields for each Variant Group like -
Name of Device - Samsung Galaxy S8+ R07
Description - Libera il tuo Smartphone
SaleEffectiveDate -…

Gaurav Kelwadkar
- 13
- 4
1
vote
2 answers
Swift 5 Alamofire 5 - Parse XML
How can I parse an XML response from a network request using swift 5 and alamofire 5?
This is the response I get:

Toto
- 593
- 7
- 20
1
vote
1 answer
How to read XML files with initial tags in R
I have several XML files which are missing the initial tag. For example, this is the proper formatted file:-

Abdul Basit Khan
- 646
- 1
- 6
- 19