1 Reply Latest reply on Jan 22, 2008 1:30 PM by (WorkflowUser)

    find the size of a XML tree node

    Level 1
      Hi,
      Is it possible to find the size of a XML variable's tree node. I tried to used the get-collection-size, but it alway hit a nullpointer exception? Is the function just for list and map type? Not for XML type?

      I have xml as:
      <data>
      <current_user>
      <username>apink</username>
      </current_user>
      <current_user>
      <username>tblue</username>
      </current_user>
      </data>

      /process_data/numofuser = get-collection-size(/process_data/xmldata/data/current_user)

      Thanks.