List of usage examples for org.dom4j Document removeProcessingInstruction
boolean removeProcessingInstruction(String target);
From source file:org.openxml4j.opc.signature.RelationshipTransform.java
License:Apache License
@SuppressWarnings("unchecked") private static void RemoveProcessingInstructions(Document doc) { List<String> processingInstructions = doc.processingInstructions(); for (String s : processingInstructions) { System.out.println("removing processing instruction : " + s); doc.removeProcessingInstruction(s); }/* w w w .j ava 2s . c o m*/ }