I have an XML file which has a lot of different nodes with the same attribute.
I was wondering if it\'s possible to find all these nodes using Python and any additi
This is a good sample/start script using xpath :
# -*- coding: utf-8 -*- from lxml import etree fp = open("xml.xml") tree = etree.parse(fp) for el in tree.findall('//node[@attr="something"]'): print(el.text)