Example usage for org.dom4j Document removeProcessingInstruction

List of usage examples for org.dom4j Document removeProcessingInstruction

Introduction

In this page you can find the example usage for org.dom4j Document removeProcessingInstruction.

Prototype

boolean removeProcessingInstruction(String target);

Source Link

Document

Removes the processing instruction for the given target if it exists

Usage

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*/
}