Native Java API for Checking Valid XML -


how determine whether document object in java contains valid xml. checked when object constructed?

i can't appear find information on in

http://docs.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/document.html 

how determine whether have valid xml document without using external libraries?

note: received document object parsing input stream dom xml parser.

use java dom api. can handle valid xml document. valid document give no exception. need no external libraries dom.

in case of error exception message looks this:

[fatal error] myxmlfile.xml:6:2: end-tag element type "lastname" must end '>' delimiter. end-tag element type "lastname" must end '>' delimiter. build successful (total time: 0 seconds) 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -