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
Post a Comment