Logo Search packages:      
Sourcecode: jclic version File versions  Download package

List org::jdom::Element::getChildren ( String  name,
Namespace  ns 
) [inline]

This returns a List of all the child elements nested directly (one level deep) within this element with the given local name and belonging to the given Namespace, returned as Element objects. If this target element has no nested elements with the given name in the given Namespace, an empty List is returned. The returned list is "live" in document order and changes to it affect the element's actual contents.

Please see the notes for getChildren for a code example.

name local name for the children to match
ns Namespace to search within
all matching child elements

Definition at line 1459 of file Element.java.

References content, and org::jdom::ContentList::getView().

        return content.getView(new ElementFilter(name, ns));

Generated by  Doxygen 1.6.0   Back to index