1

how to check if the XML has error before or after loading it in the XMLDocuments? i would like to trap that error so that it will not proceed. not to use "Try Except" common error are "cut, currupted, invalid symbols etc". any idea?

1

1 Answer 1

2

You can use an XML DOM validator, or you can use the functions. Alternatively, I found a very easy-to-follow, step-by-step tutorial, provided by Microsoft: http://support.microsoft.com/kb/307379. It tells you how to validate your XML documents in visual studio, and I was able to run it against the example code at RRUZs' link.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.