2 Replies Latest reply on Mar 21, 2007 1:36 PM by mbuna303

    Determining Node Depth

    mbuna303
      I might not be using the right search terms, but I cannot find a single article anywhere on determining at what depth a node exists within an XML tree.

      I can't use the node's name, because sections can exist within sections as you can see (and I can't change the format of the XML document). I need to be able to get a number value of 0 for a "top level" section node (ie: "Home"), and 1 for a section node within a section node (ie: "Subnav1"), and so on.

      Thanks in advance :)