How to parse XML file in VB 6.0
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I want to parse XML file with MSXML4.0 in VISUAL BASIC 6.0(not vb.net)but problem with my code is it's showing only one error at a time..but i need to show all the parsing error, my code is as below: ----- Dim schemaCache As MSXML2.XMLSchemaCache40 Set schemaCache = New MSXML2.XMLSchemaCache40 schemaCache.Add "", "MySchema.xsd" Dim doc As MSXML2.DOMDocument40 Set doc = New MSXML2.DOMDocument40 Set doc.schemas = schemaCache doc.async = False If Not doc.Load("MyXML.xml") Then MsgBox "Error loading XML document: " & doc.parseError.reason Else MsgBox "File parsed successfully." End If ------------ please help me its urgent,thanks in advance Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm