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

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?