vb.net - Is there a one liner to verify XML string structure? -
i have string:
dim strxmltags string = "<tags><test>1</test></tags>"
and want verify opening tags have closing tag in proper place. if put previous string through, it'd work. however, if put:
dim strxmltags string = "<tags><test>1</test>"
then want give me error. there xml structure checker or of sorts? or should try , load xml document , if errors then, know. thanks.
the easiest way indeed try loading xml document, , see if crashes or not.
Comments
Post a Comment