Apr-12-2018, 04:10 PM
Hello -
Thanks so much. I just did a quick test and this works great. I will try it on a few other parts of the xml file as well.
One question, as a test, I changed to using lxml and the same code works. But, you also suggested using xpath for my searching/parsing. In my example, would it be something like:
thank you!
Thanks so much. I just did a quick test and this works great. I will try it on a few other parts of the xml file as well.
One question, as a test, I changed to using lxml and the same code works. But, you also suggested using xpath for my searching/parsing. In my example, would it be something like:
conn_mgrs = root.xpath('XYZ:ConnectionManagers/XYZ:ConnectionManager/XYZ:ObjectData/XYZ:ConnectionManager', namespaces=ns)I did try that and the output was the same as using the builtin xml.etree. Just wanted to make sure I was understanding your advice.
thank you!