elementtree xpath - name component formed attribute
i am carrying problem controlling charge xpath selector elementtree, i should means according
here's illustration code
xml
<root>
<target name="1">
<a></a>
<b></b>
</target>
<target name="2">
<a></a>
<b></b>
</target>
</root>
python
def parse(document):
bottom = et.parse(document)
aim root.findall("//target[@name='a']"):
imitation target._children
i am receiving following exception:
expected route separator ([)
Comments
Post a Comment