public String getProcessingInstructionData(Object obj) { ProcessingInstruction pi = (ProcessingInstruction) obj; return pi.getText(); }
protected void writeProcessingInstruction(ProcessingInstruction processingInstruction) throws IOException { //indent(); writer.write( "<?" ); writer.write( processingInstruction.getName() ); writer.write( " " ); writer.write( processingInstruction.getText() ); writer.write( "?>" ); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
result.add(new DefaultAttribute("target", pi.getTarget())); } else if ("data".equals(localName)) { result.add(new DefaultAttribute("data", pi.getText())); } else { result.add(new DefaultAttribute(localName, pi.getValue(localName)));
protected void appendDOMTree(org.w3c.dom.Document domDoc, org.w3c.dom.Node domCurrent, ProcessingInstruction pi) { org.w3c.dom.ProcessingInstruction domPI = domDoc .createProcessingInstruction(pi.getTarget(), pi.getText()); domCurrent.appendChild(domPI); }
/** * Generates SAX events for the given ProcessingInstruction * * @param pi * is the ProcessingInstruction to parse * * @throws SAXException * if there is a SAX error processing the events */ public void write(ProcessingInstruction pi) throws SAXException { String target = pi.getTarget(); String text = pi.getText(); contentHandler.processingInstruction(target, text); }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
/** * Constructs a STAX {@link javax.xml.stream.events.ProcessingInstruction} * event from a DOM4J {@link ProcessingInstruction}. * * @param pi * The {@link ProcessingInstruction}from which to construct the * event. * * @return The constructed {@link * javax.xml.stream.events.ProcessingInstruction} event. */ public ProcessingInstruction createProcessingInstruction( org.dom4j.ProcessingInstruction pi) { String target = pi.getTarget(); String data = pi.getText(); return factory.createProcessingInstruction(target, data); }
protected void appendDOMTree(org.w3c.dom.Document domDoc, org.w3c.dom.Node domCurrent, ProcessingInstruction pi) { org.w3c.dom.ProcessingInstruction domPI = domDoc .createProcessingInstruction(pi.getTarget(), pi.getText()); domCurrent.appendChild(domPI); }
protected void appendDOMTree(org.w3c.dom.Document domDoc, org.w3c.dom.Node domCurrent, ProcessingInstruction pi) { org.w3c.dom.ProcessingInstruction domPI = domDoc .createProcessingInstruction(pi.getTarget(), pi.getText()); domCurrent.appendChild(domPI); }
protected void appendDOMTree(org.w3c.dom.Document domDoc, org.w3c.dom.Node domCurrent, ProcessingInstruction pi) { org.w3c.dom.ProcessingInstruction domPI = domDoc .createProcessingInstruction(pi.getTarget(), pi.getText()); domCurrent.appendChild(domPI); }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }
protected void writeProcessingInstruction(ProcessingInstruction pi) throws IOException { // indent(); writer.write("<?"); writer.write(pi.getName()); writer.write(" "); writer.write(pi.getText()); writer.write("?>"); writePrintln(); lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE; }