Results 1 to 3 of 3

Thread: XML Child length problem?

  1. #1

    Pallete XML Child length problem?

    This following data is my xmldata. I have to find out child length is equal to 3.



    <studentlist xmlnssi="http://www.w3.org/2001/XMLSchema-instance">
    <namelist>
    <Name>Rithick rajan</Name>
    <Age>21</Age>
    <Sex>Male</Sex>
    <Address>5/15, Vinayagar Kovil Street, Chennai.</Address>
    </namelist>
    <namelist>
    <Name>Kumar</Name>
    <Age>19</Age>
    <Sex>Male</Sex>
    <Address>Newno: 45, Kamaraj street, Chennai.</Address>
    </namelist>
    <namelist>
    <Name>Ravimumar</Name>
    <Age>12</Age>
    <Sex>Male</Sex>
    <Address>378A, Grass Land Street, Pune.</Address>
    </namelist>
    </studentlist>
    please help me tom solve this problem. I used child(0).length it was not working...

  2. #2
    in XML the length property is a function and is followed by parenthesis, see this link:

    length()

  3. #3
    thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012