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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -