User Profile

Collapse

Profile Sidebar

Collapse
JS1
JS1
Last Activity: Dec 4 '06, 10:14 PM
Joined: Dec 4 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JS1
    replied to Count Nodes?
    in XML
    I figured it out:

    XmlDocument xmlD = new XmlDocument();
    xmlD.Load(Serve r.MapPath("samp le.xml"));

    XmlNodeList xmlNL = xmlD.GetElement sByTagName("Mes sage")[i].SelectNodes("O rder/Item");

    xmlNL.Count;

    Thanks anyways,

    JS
    See more | Go to post

    Leave a comment:


  • JS1
    started a topic Count Nodes?
    in XML

    Count Nodes?

    Hi there,

    How do I count the number of <Item> nodes for each <Message> in the
    following xml document?

    (Xml Document)
    <Message>
    <Order>
    <Item>1</Item>
    <Item>2</Item>
    </Order>
    </Message>
    <Message>
    <Order>
    <Item>3</Item>
    </Order>...
    See more | Go to post
No activity results to display
Show More
Working...