3 Replies Latest reply on Jul 23, 2007 2:00 PM by injpix

    childNodes without grand children?

    NickTheNameless Level 1
      i doubt the title is the correct terminology, but it's the best paraphrase for what i'm trying to do. let's say i have a xml doc that has a root node, which has children, and each of those children may or may not have children of their own. in the code below, "this" is my xml object. what i want to do is to create the variable "nodes" that says give me a list of all the child nodes of the root node, without including the child nodes of the child nodes. basically i want that variable to equal all the nodes one level, and only one level, below the root node. as it stands right now, my variable "nodes" includes everything in the xml document. how do i leave out the grand kids?