+ Reply to Thread
Results 1 to 2 of 2

MSXML2 - getElementsByTagName()

  1. #1
    Registered User
    Join Date
    08-29-2006
    Posts
    30

    MSXML2 - getElementsByTagName()

    Hi, I'm pretty unfamiliar with XML, but I'm writing a VBA program in excel that uses the MSN Soap Library to retrieve XML object's from this database on the web. Then I need to extract info from these XML objects and distribute them into a worksheet. Basically, the first part of my code returns an IXMLDOMSelection object, let's call it objX.

    objX has a bunch of child nodes containing the info I want to extract. I'm trying to use the method 'getElementsByTagName(Name As String)' to return nodes matching a particular tagname so that I can get the text from those nodes and put it in the correct place in my worksheet. The problem is, I can't get "getElementsByTagName" to work properly. I searched the internet, and found out that the following command should return all nodes in the object, which it does.
    Please Login or Register  to view this content.
    So when I look at the tagnames of these nodes and if, for example, the tagname of the 1st node is 'tag', the following command should return just that first node.
    Please Login or Register  to view this content.
    However, this is not returning anything at all, and I'm completely baffled as to how to make it work.

    Hopefully someone has some idea of what I'm talking about and can either help me out or tell me I'm going about this the wrong way. Thanks

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Cross Posted http://vbaexpress.com/forum/showthre...2185#post82185

    Hoopz you should not cross post, Please follow this link and read it for an explanation of cross-posting
    http://www.excelguru.ca/node/7

    Regards,
    Simon

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1