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

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -