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

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

This removes the first child element (one level deep) with the given local name and belonging to the given namespace. Returns true if a child was removed.

name the name of child element to remove
ns Namespace to search within
whether deletion occurred

Definition at line 1520 of file Element.java.

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

        List old = content.getView(new ElementFilter(name, ns));
        Iterator i = old.iterator();
        if (i.hasNext()) {
            return true;

        return false;

Generated by  Doxygen 1.6.0   Back to index