We use XPath 2.0 to access the DOM tree after XML or JSON is parsed into an instance of a DOM.
However, a simple API also exists to walk the DOM tree directly if desired.