Is there a direct substitute in standard \[code\]Java\[/code\] (\[code\]J2SE\[/code\]) 6 (no \[code\]JDOM\[/code\] or other third party libraries) for the Apache Xerces \[code\]XML DOM\[/code\] document parsing and iterating classes? Using the \[code\]Sun\[/code\] \[code\]J2SE\[/code\] \[code\]XML\[/code\] implementation, i.e., \[code\]com.sun.org.apache.xerces.internal.dom.DocumentImplcom.sun.org.apache.xerces.internal.dom.NodeIteratorImplcom.sun.org.apache.xerces.internal.parsers.DOMParser\[/code\]causes warnings by the compiler that each use of these classes "is Sun proprietary API and may be removed in a future release".The code I currently use for instantiating a generic \[code\]NodeIterator\[/code\] object is\[code\]org.w3c.dom.Document document = ...; // Get an XML DOM Document objectorg.w3c.dom.NodeIterator iterator = new NodeIteratorImpl(new DocumentImpl( document.getDoctype()), document.getDocumentElement(), NodeFilter.SHOW_ALL, null, true);\[/code\]The \[code\]NodeIterator\[/code\] visits the nodes of an \[code\]XML DOM\[/code\] document in depth-first search order, which is essential for my application and so the above code needs to be replaced with something functionally equivalent.