XML node attribute value

Results 1 to 3 of 3

Thread: XML node attribute value

  1. #1
    Join Date
    Dec 1969

    Default XML node attribute value

    How do I get the attribute value of a node(in xml file) in C#<BR>like i use node.innertext to get the text of that node..how do i retrieve attribute value.<BR>e.g<BR>&#060;menuitem visible="yes"&#062;&#060;/menuitem&#062;<BR>I have to bypass the whole node depending on the value of attribute visible..how do i do that?

  2. #2
    Join Date
    Dec 1969

    Default RE: XML node attribute value

    check the Attributes property in the .net framework sdk. Its part of the node object and its used jsut like a collection

  3. #3
    Join Date
    Dec 1969

    Default Here

    oNode.Attributes.GetNamedItem("attributename").Inn erText

Posting Permissions

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