Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

Invalid xml

In the following VB how do I handle it if there is invalid text when loading the XmlDoc with (text)?
     Dim XmlDoc As New XmlDocument()
     XmlDoc.LoadXml(text)

I don't want ti go to a catch...
I want to set a variable to "Error on file" and then a GoTo
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Larry Brister

ASKER

kaufmed,
  That's what I thought. Thanks