Returns a list of child nodes.
childNodes();
Return Value
An object of type SGNodeList, containing a list of all the child nodes. If the node has no children, the returned list does not contain any nodes.
Example
The following example illustrates the use of the childNodes method.
function getChildName(parent, childIndex)
{
var name = parent.childNodes().item(childIndex).getName();
alert("Child " + childIndex + " name is: " + name);
}
Alternatively, the childNodes method can be used to retrieve a specific child by its name:
var node = parent.childNodes().item("myPoly");