Consulting

Results 1 to 2 of 2

Thread: Sleeper: Alternative for GetElementsByTagName for filling a xmlnodelist

  1. #1
    VBAX Newbie
    Joined
    Dec 2015
    Posts
    2
    Location

    Sleeper: Alternative for GetElementsByTagName for filling a xmlnodelist

    I am looking for an alternative for filling a xmlnodelist. Because the function GetElementsByTagName is only working with one “search condition”. 
    I would like to add to this nodelist the tags “A” and tags B both in one nodelist.
    The code below is not correct because its only working for one tagname. Anyone any idea? Maybe with a loop function?
    Src = filename
    xmldoc.async = False
    xmldoc.Load (src)
    Set oNodeList = xmldoc.getElementsByTagName("A")

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Tags for this Thread

Posting Permissions

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