*/
public NodeList getElementsByTagName(final String name) {
if (name.equals("*")) {
return new NodeListImpl() {
protected Iterator getIterator() {
return new OMDescendantsIterator(getFirstOMChild());
}
};
} else {
return new NodeListImpl() {
protected Iterator getIterator() {
return new OMQualifiedNameFilterIterator(
new OMDescendantsIterator(getFirstOMChild()), name);
}
};
}
}