Native Java API for Checking Valid XML

MadieFeildz

New Member
How do you determine whether a \[code\]Document\[/code\] object in Java contains valid XML. Is this checked when the object is constructed?I can't appear to find any information on this in \[code\]http://docs.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Document.html\[/code\]How do you determine whether you have a valid XML \[code\]Document\[/code\] without using external libraries?Note: I received this Document object by parsing from an input stream with a DOM XML parser.
 
Top