SelectSingleNode named sibling using Msxml2

Hi,

Hope someone can help me out with this one, making me insane & bald

From the XML below
          <Attribute name="updated">20150422 08:36</Attribute>

I want to get  '20150422 08:36'


My code goes something like this:

Set itemList3 = XMLDom.SelectNodes("Menu/Language/MenuItem/MenuItem/Link")
For Each itemAttrib3 In itemList3
   response.write itemAttrib3.SelectSingleNode("Text").text

   response.write itemAttrib3.SelectSingleNode("?????????").text

next

What expression in '?????????' will get the value from:

<Menu>
  <Language lang="da" default="false">
    <MenuItem selection="Greenland" sortCode="Grønland">
      <MenuItem selection="Greenland\AL" sortCode="Tobak og alkohol">
        <Link selection="Greenland\AL\ALXALK.px" sortCode="ALXALK" type="PX" category="O" tableId="" status="A">
          <Text>Alkoholtilførsel efter enhed, tid og art</Text>
          <Attribute name="size">10415</Attribute>
          <Attribute name="cells">840</Attribute>
          <Attribute name="updated">20150422 08:36</Attribute>
          <Attribute name="modified">20150422 09:00</Attribute>
          <Published>22-04-2015 08:36:53</Published>
          <LastUpdated>22-04-2015 09:00:00</LastUpdated>
        </Link>
      </MenuItem>
    </MenuItem>
  </Language>
</Menu>

LarsLap
LarsLapAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Robert SchuttSoftware EngineerCommented:
try this:
response.write itemAttrib3.SelectSingleNode("Attribute[@name='updated']").text

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LarsLapAuthor Commented:
Perfect, thank you Robert
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.