[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: need help / insight on parsing some xml with vb6
Tom Martin wrote: The code posted by William usedThe code that you provided was helpful and here is what I did attached to a button click... Dim objXML As New MSXML2.DOMDocument Dim NodeList As MSXML2.IXMLDOMNode Dim xNode As MSXML2.IXMLDOMNode objXML.async = False objXML.Load ("C:\Documents and Settings\Tom\Desktop\new xml test aop.xml") 'objXML.Load ("c:\users\BillGates\Documents\competition.xml") Set NodeList = objXML.selectSingleNode("/ArrayOfCompetition/Competition/EventName") selectNodes and not selectSingleNode Only selectNodes gives you a NodeList you can iterate over, selectSingleNode returns the first matched node or Nothing if none is found.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|