python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How can I conditionally get values from XML w/ElementTree?
I have XML and I need to extract some values, and if these values don't exists I want "N/A".
<?xml version="1.0" encoding="utf-8"?>
<DEF xmlns:xsi="http://w...
defekas17
Votes: 0
Answers: 2
python ElementTree - find value of child's attribute based on parent's attribute
Here is a example of what's in my XML file.
<parent uniqueID="1000" name="Bob Ross" >
<child atrribute1="value"
</parent>
The user is going t...
bozogs
Votes: 0
Answers: 1
Python xml.etree.ElementTree 'findall()' method does not work with several namespaces
I am trying to parse an XML file with several namespaces. I already have a function which produces namespace map – a dictionary with namespace prefixes and namespace identifiers (example in the code)....

Myklebost
Votes: 0
Answers: 2
Is there a way to feed downloaded xml continuously into XMLPullParser?
In my python script, I'm downloading some XML from a url. It contains the a list of elements within the root element. It really takes quite some time to do so and since the documentation of etree sugg...
CodeSpoof
Votes: 0
Answers: 1