/** * This will build a JDOM ProcessingInstruction from an existing DOM ProcessingInstruction * * @param pi <code> org.w3c.dom.ProcessingInstruction</code> object * @return <code>ProcessingInstruction</code> - JDOM ProcessingInstruction object * @since JDOM2 */ public org.jdom2.ProcessingInstruction build(org.w3c.dom.ProcessingInstruction pi) { return factory.processingInstruction(pi.getTarget(), pi.getData()); }
/** * This will indicate that a processing instruction has been encountered. * (The XML declaration is not a processing instruction and will not be * reported.) * * @param target * <code>String</code> target of PI * @param data * <code>String</code> containing all data sent to the PI. This * typically looks like one or more attribute value pairs. * @throws SAXException * when things go wrong */ @Override public void processingInstruction(final String target, final String data) throws SAXException { if (suppress) return; flushCharacters(); final ProcessingInstruction pi = (currentLocator == null) ? factory .processingInstruction(target, data) : factory .processingInstruction(currentLocator.getLineNumber(), currentLocator.getColumnNumber(), target, data); if (atRoot) { factory.addContent(currentDocument, pi); } else { factory.addContent(getCurrentElement(), pi); } }
Content pi = factory.processingInstruction( stream.getPITarget(), stream.getPIData()); stream.next();
ret.add(factory.processingInstruction( stream.getPITarget(), stream.getPIData()));
current.addContent(factory.processingInstruction( reader.getPITarget(), reader.getPIData())); break;
current.addContent(factory.processingInstruction( reader.getPITarget(), reader.getPIData()));
document.addContent(factory.processingInstruction( stream.getPITarget(), stream.getPIData())); break;
((javax.xml.stream.events.EntityReference)event).getName())); } else if (event.isProcessingInstruction()) { final ProcessingInstruction pi = factory.processingInstruction( ((javax.xml.stream.events.ProcessingInstruction)event).getTarget(), ((javax.xml.stream.events.ProcessingInstruction)event).getData());