The PBDOM XML parser is used to load and parse an XML document, and also to generate XML based on user-specified DOM nodes.
PBDOM provides the methods you need to traverse the node tree, access the nodes and attribute values (if any), insert and delete nodes, and serialize the node tree back to XML.