I've been pulling my hair out trying to figure out how to parse the XML code below in VB6. I need to be able to reference the content by it's tag name. For example I need to be able to pluck the content by it's element name e.g. "Album" and have it return the content "Face Up in the Rain." Preferably without having to do any iteration. Example strAlbum = XML.someMethodByTagName("Album") I've been able to reference and obtain the content by using an index i.e. strAlbum = XML.GetChildContentByIndex(n), but I need to be able to use the tag name because the order and number of the elements might change. Also, please note there are two references to "Status" and one element named "Name."
Any insight/help would be greatly appreciated.
p.s. I'm woking in VB6, not C.
asked May 07 '15 at 12:16
Here's an example:
answered May 07 '15 at 13:53