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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.