only support reading xinclude if we are using lxml

This commit is contained in:
Dane Springmeyer 2010-08-26 20:45:08 +00:00
parent 594b019879
commit b4e989a85a

View file

@ -87,6 +87,7 @@ if __name__ == "__main__":
xml = sys.argv[1]
tree = etree.parse(xml)
if hasattr(tree,'xinclude')
tree.xinclude()
root = tree.getroot()