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

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

This returns the first child element within this element with the given local name and belonging to the given namespace. If no elements exist for the specified name and namespace, null is returned.

name local name of child element to match
ns Namespace to search within
the first matching child element, or null if not found

Definition at line 1473 of file Element.java.

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

Referenced by getChild(), getChildText(), getChildTextNormalize(), and getChildTextTrim().

        List elements = content.getView(new ElementFilter(name, ns));
        Iterator i = elements.iterator();
        if (i.hasNext()) {
            return (Element) i.next();
        return null;

Generated by  Doxygen 1.6.0   Back to index