Assuming you already have the specified Node
element, loop through all the elements and remove them...
while (node.getAttributes().getLength() > 0) {
Node att = node.getAttributes().item(0);
node.getAttributes().removeNamedItem(att.getNodeName());
}
For example...