Code example for ProcessingInstruction

Methods: getTarget

0
            return new Filter() { 
                @Override 
                boolean accept(Node node) {
                    if (node.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE) {
                        ProcessingInstruction pi = (ProcessingInstruction)node;
                        return name.matchesLocalName(pi.getTarget());
                    } 
                    return false; 
                } 
            }; 
        } 
        static Filter ELEMENT = new Filter() {
            @Override 
            boolean accept(Node node) { 
                return node.getNodeType() == Node.ELEMENT_NODE; 
            } 
        }; 
        static Filter TRUE = new Filter() {
            @Override 
            boolean accept(Node node) { 
                return true;