I am new to python and would like to understand the xml parsing. I could not find any wonderful examples or explanations of how to create a general program for working with a node of XML nodes.
I want to be able to classify and identify all elements and attributes by name and value, without having any xml schema information. I do not want to rely on invoking elements and attributes specifically by name or tag.
Can someone point me in the right direction?
thanks
UPDATE:
The specific question that was asked was that "as usual, I recurse all the nodes from the root of the node in the XML document without any deep knowledge of the schema."
At that time, being new to python and understanding how to perform this operation in many other languages, I was puzzled by any real world examples that did not rely on named nodes to traverse the DOM, which is not what I wanted at all.
We hope that this clarifies the issue, since the information in this thread is really useful.
source share