Questions tagged [parsexml]

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

90 questions
1
vote
1 answer

python read xml file and convert into csv file

I am trying to convert xml file into csv file. How to read and parse xml file and convert into csv? Is there any package to convert xml into csv. 1 eVoting…
Dibbya
  • 37
  • 2
  • 7
1
vote
1 answer

Unable to parse RSS feed using python, but other RSS feed apps in chrome can parse data

I'm working on a basic python script that parses RSS Feed data from the SEC.gov website, but it fails when I run the script. Where am I going wrong? The version of Python I'm using is 3.6.5, and I've tried using the libraries Atoma and feedparser,…
RonRon
  • 11
  • 1
1
vote
1 answer

Avoiding Nokogiri::XML::XPath::SyntaxError: ERROR: Undefined namespace prefix

I get the error "Nokogiri::XML::XPath::SyntaxError: ERROR: Undefined namespace prefix" when I do this: doc.search('//text()[not(ancestor::w:delText]') Based on this answer: How do I use xpath on nodes with a prefix but without a…
echan00
  • 2,788
  • 2
  • 18
  • 35
1
vote
1 answer

Parse with DOMParser or innerHTML?

What is the difference between these examples and why would you use one instead of another, for performance or browser compatibility? Is there something cannot be done between these two? txt="
"+ "Roble Ave"+ …
Toniq
  • 4,492
  • 12
  • 50
  • 109
1
vote
2 answers

How to read the XML response element in robot framework?

I have run SOAP API request and get the response as below using robot framework. (reply){ return = "PGP-98-Sq0awmdslfjsdssdlsifTvZUORTLe1fgVeUwaolR14QS" } I would like to retrieve the value PGP-98-Sq0awmdslfjsdssdlsifTvZUORTLe1fgVeUwaolR14QS…
JCDani
  • 307
  • 7
  • 20
1
vote
1 answer

UnicodeDecodeError when parsing XML on mac but works on PC

When parsing a XML file with: from lxml import etree with open('cortex_full.xml', 'r') as infile: root = etree.parse(infile) I am getting the UnicodeDecodeError below. This only happens on my Mac though - if I parse the same file with the…
Braden
  • 680
  • 1
  • 11
  • 26
1
vote
1 answer

Drawing from XML parsing

I am trying to draw a moving circle based on coordinates read from an XML file. At the moment the circle will only draw once. Could someone show me where I'm going wrong?! The EyeMove method is called within a loop which reads the X and Y strings…
user8370201
  • 31
  • 1
  • 6
1
vote
2 answers

jquery parse xml for multiple tags

I want to get multiple tags from an XML document. I looked at this question which essentially gets sub-elements of one tag, whereas I want all the tags. Using the same example XML (replicated below): var data = " Some ins…
Chiwda
  • 1,233
  • 7
  • 30
  • 52
1
vote
2 answers

java: no suitable method found for parse(java.util.List)

I'm having an issue with my code I'm assuming I'm missing a method, I want to create a list of strings and then print out the contents. Now I have written some code that does this for one string but I'd like to do it for a number of strings. …
Peter
  • 231
  • 1
  • 7
  • 22
1
vote
1 answer

simplexml_load_string doesn't parse right

So, I'm trying to parse and xml and get some values out of it: $xml = simplexml_load_string(file_get_contents('http://www.bnr.ro/nbrfxrates.xml')); $currency = []; foreach($xml->Body->Cube->Rate as $rate) { $currency[] = [ …
Alexandru Coman
  • 165
  • 1
  • 14
1
vote
1 answer

Reading an external XML file with jQuery

Edited I need to fill a webpage with content stored in an external XML file. I found a working example: http://jsfiddle.net/9eqvq/ However, in this example the data is directly written into the HTML document. The application should be able to read…
wurstbrotrest
  • 329
  • 1
  • 7
  • 17
1
vote
1 answer

Parse xml element into list in Python

I've been trying for days to store the list of coordinates as a list in python. I've tried minidom, xmlreader, and a few others. Obviously I'm doing something wrong, but now I'm on a deadline and need some help.
Will Luce
  • 1,781
  • 3
  • 20
  • 33
1
vote
1 answer

Parsing an XML file in PHP

I have this piece of code: 00077 obtained by using urldecode($info). How I can parse this information? Can I use…
user880386
  • 2,737
  • 7
  • 33
  • 41
1
vote
0 answers

Parse *.vcproj file in Qt

I need to parse .vcproj file in Qt, this file actually xml file adn looks like:
Green Carpet
  • 15
  • 1
  • 7
1
vote
2 answers

How to wait for NSXMLParser to complete in iOS

I want to wait for NSXMLParser process to complete and then continue with other processes. I use NSXMLParser to parse XML data. This is my code: - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString…
NGOT
  • 149
  • 5
  • 12