Added advanced removeAttributes tag
This commit is contained in:
parent
93b9c9b1b0
commit
d912ee10b7
2 changed files with 10 additions and 0 deletions
|
@ -379,6 +379,12 @@ public class XMLPatcher {
|
|||
contextNode.setAttribute( attrib.clone() );
|
||||
}
|
||||
}
|
||||
else if ( cmdNode.getName().equals( "removeAttributes" ) ) {
|
||||
handled = true;
|
||||
for ( Attribute attrib : cmdNode.getAttributes() ) {
|
||||
contextNode.removeAttribute( attrib.getName() );
|
||||
}
|
||||
}
|
||||
else if ( cmdNode.getName().equals( "setValue" ) ) {
|
||||
handled = true;
|
||||
contextNode.setText( cmdNode.getTextTrim() );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue