Parsing XML/Profusion Files

1 post
Was this reply useful? Learn more...
Raz Allon +0 points · 6 months ago

I am having troubles parsing the XML and profusion files. I have been using codes from stack overflow and stack abuse, and with both codes I am getting stuck at the "items" and "names" portion. I looked closely at the XML file and have come to the hypothesis that python is unable to detect the items. How should I fix this problem?

I took the code from this website:

I ran the following code.

tree = ET.parse('shhs1-200001-nsrr.xml') root = tree.getroot() for child in root: print(child.tag, child.attrib)

and I got the following result: SoftwareVersion {} EpochLength {} ScoredEvents {}

133 posts
Was this reply useful? Learn more...
mrueschman +0 points · 6 months ago

What are you trying to do once you parse the XML annotation files?

I don't use python, but I did something in R a couple years ago:

Another example in Ruby: