View Single Post
  #1 (permalink)  
Old November 7th, 2008, 11:23 AM
eruditionist eruditionist is offline
Authorized User
 
Join Date: Sep 2008
Location: , , .
Posts: 56
Thanks: 0
Thanked 1 Time in 1 Post
Default How to get the size of the child nodes.

<?xml version="1.0"?>
<ss>
    <id>
        <picture>image.jpg</picture>
        <text>sample text </text>
    </id>
    <id>
        <picture>image.jpg</picture>
        <text>sample text </text>
    </id>
    <id>
        <picture>image.jpg</picture>
        <text>sample text </text>
    </id>
    <id>
        <picture>image.jpg</picture>
        <text>sample text </text>
    </id>
    <id>
        <picture>image.jpg</picture>
        <text>sample text </text>
    </id>
    <id>
        <picture>image.jpg</picture>
        <text>sample text </text>
    </id>
</ss>

How do I get the total number of ids that are in this xml? for example according to this xml I want to get size = 6

Reply With Quote