Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <root>
- <target name="1">
- <a></a>
- <b></b>
- </target>
- <target name="2">
- <a></a>
- <b></b>
- </target>
- </root>
- def parse(document):
- root = et.parse(document)
- for target in root.findall("//target[@name='a']"):
- print target._children
- expected path separator ([)
Add Comment
Please, Sign In to add comment