Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read XML file in VB6 2

Status
Not open for further replies.

Terabithia

Programmer
Aug 31, 2004
70
US
I need to get specific data from an XML file into an array in VB6. What is the preferred way to do this? Parse through the file until I find what I need?
 
You can manually parse it, use a SAX2 parser, or if the XML is small you can let a DOM library to parse it into a heavyweight DOM object.

MSXML implements both SAX and DOM, but there are many 3rd party libraries too. The topic can get a lot more complicated if you need to validate against a schema or handle namespaces and related tag prefixes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top