Search XML Document for Element's Attribute

Discussion in 'C#' started by dapper, Oct 4, 2010.

  1. #1
    I need to search for the attributes Att1, Att2, to an xml element in classic ASP. Please help me.
    I'm starting with a string of xml like the following:


    <aNode>
    <bNode att1="abc">AAA</bNode>
    <cNode att2="xyz"></cNode>
    </aNode>

    Please help and thanks in advance.
     
    dapper, Oct 4, 2010 IP
  2. autrevo

    autrevo Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can use XPath to accomplish this task. Refer to any sample program on msdn.
    Let me know in case you need further assistance.
     
    autrevo, Oct 13, 2010 IP