How to implement a parser class to catch an exception of missing tags

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • extra brain
    New Member
    • Oct 2011
    • 1

    How to implement a parser class to catch an exception of missing tags

    Hello
    I'm using VB.net to validate then read an xml file.
    I need to implement a parser class to catch an exception of missing tags and then inserts the required tag in its place.

    I need to implement a parser method just like the one Firefox provides when it catches a missing tag. Take the following result from FireFox as a reference.

    "XML Parsing Error: mismatched tag. Expected: </closing_tag>.
    Location: file:FILE_PATH/File.xml
    Line Number x, Column 3:
    </site>
    --^
    "

    Please I'm newbie how can catch such exception in vb.net
Working...