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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -