value = filterText( extractQName( element ), value, apply.rule() );
element.setTextContent( value );
} else if( node instanceof Text ) {
Text text = (Text)node;
String value = text.getWholeText();
value = filterText( extractQName( text.getParentNode() ), value, apply.rule() );
text.replaceWholeText( value );
} else if( node instanceof Attr ) {
Attr attr = (Attr)node;
String value = attr.getValue();
value = filterAttribute( extractQName( attr.getOwnerElement() ), extractQName( attr ), value, apply.rule() );