I apologize if this is a simple question but I have looked through the docs,
and the generated (schema-derived) classes and can't find the answer.
After unmarshalling an XML document into a Java content-tree, how can
I iterate through all of the elements in the tree without knowing the details
of the XML schema (element x has child elements y and z)? In other words,
I want to start at the root element then get all of its children and their children
and so on.
For example, assume I have unmarshalled an XHTML document into a content
tree of instances schema-derived classes that were generated with the JAXB
binding compiler. Now I want to find all of the table elements in the tree. How
would I do that?
Thanks.