XML parsing using Elemetree in python -


i trying read xml file using python [ver - 2.6.7] using elementtree

there tags of format :

<tag, [attributes]> ....data.... </tag> 

the data in case binary data read using text attribute. there cases data can reference other tag in file.

<tag, [attributes]> ....data.... <ref target='idname'/> </tag> 

what attribute element tree can used parse them ?

try xpath expressions. tell whether tag present and, if present, returns node.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -