Examples of createProcessingInstruction()


Examples of mf.org.w3c.dom.Document.createProcessingInstruction()

            case Node.ENTITY_REFERENCE_NODE: {
                node = factory.createEntityReference(place.getNodeName());
                break;
            }
            case Node.PROCESSING_INSTRUCTION_NODE: {
                node = factory.createProcessingInstruction(place.getNodeName(),
                        place.getNodeValue());
                break;
            }
            case Node.TEXT_NODE: {
                node = factory.createTextNode(place.getNodeValue());
View Full Code Here

Examples of org.apache.xerces.dom.DocumentImpl.createProcessingInstruction()

        Text  text = doc.createTextNode("Doc02TextNode");
        Comment comment = doc.createComment("Doc02Comment");
        CDATASection  cdataSec = doc.createCDATASection("Doc02CDataSection");
        DocumentType  docType = doc.getImplementation().createDocumentType("Doc02DocumentType", null, null);
        Notation notation = ((DocumentImpl) doc).createNotation("Doc02Notation");
        ProcessingInstruction pi = doc.createProcessingInstruction("Doc02PITarget",
                                    "Doc02PIData");
        NodeList    nodeList = doc.getElementsByTagName("*");
    }


View Full Code Here

Examples of org.apache.xindice.xml.dom.DocumentImpl.createProcessingInstruction()

      return null;
   }

   private void putObject(Key key, XMLSerializable obj /*, boolean create */) throws DBException {
      Document doc = new DocumentImpl();
      ProcessingInstruction pi = doc.createProcessingInstruction(CLASSNAME, obj.getClass().getName());
      doc.appendChild(pi);
      Element elem = obj.streamToXML(doc);
      doc.appendChild(elem);
      putDocument(key, doc /*, create */);
   }
View Full Code Here

Examples of org.apache.xindice.xml.dom.DocumentImpl.createProcessingInstruction()

        if (log.isTraceEnabled()) {
            log.trace(debugHeader() + "putObject: key=<" + key + "> class=<" + obj.getClass().getName() + ">");
        }

        Document doc = new DocumentImpl();
        ProcessingInstruction pi = doc.createProcessingInstruction(CLASSNAME, obj.getClass().getName());
        doc.appendChild(pi);
        Element elem = obj.streamToXML(doc);
        doc.appendChild(elem);
        putDocument(key, doc /*, create */);
    }
View Full Code Here

Examples of org.apache.xindice.xml.dom.DocumentImpl.createProcessingInstruction()

        if (log.isTraceEnabled()) {
            log.trace(debugHeader() + "putObject: key=<" + key + "> class=<" + obj.getClass().getName() + ">");
        }

        Document doc = new DocumentImpl();
        ProcessingInstruction pi = doc.createProcessingInstruction(CLASSNAME, obj.getClass().getName());
        doc.appendChild(pi);
        Element elem = obj.streamToXML(doc);
        doc.appendChild(elem);
        putDocument(key, doc /*, create */);
    }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument.createProcessingInstruction()

      if (declaration != null) {
        if (pi != null) {
          pi.setData(declaration);
        }
        else {
          pi = document.createProcessingInstruction("xml", declaration); //$NON-NLS-1$
          document.insertBefore(pi, child);
          insertBreak(model, child);
        }
      }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument.createProcessingInstruction()

    Preferences preferences = getModelPreferences();
    if (preferences != null && preferences.getBoolean(XMLCorePreferenceNames.FIX_XML_DECLARATION)) {
      IDOMDocument document = ((DOMModelImpl) structuredModel).getDocument();
      if (!fixExistingXmlDecl(document)) {
        String encoding = preferences.getString(CommonEncodingPreferenceNames.OUTPUT_CODESET);
        Node xml = document.createProcessingInstruction("xml", "version=\"1.0\" " + "encoding=\"" + encoding +"\""); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
        document.insertBefore(xml, document.getFirstChild());
      }
    }
    super.cleanupModel(structuredModel);
  }
View Full Code Here

Examples of org.w3c.dom.Document.createProcessingInstruction()

    final Document doc = Util.createXML("KF");
    final Element root = (Element) doc.getDocumentElement();

    // Create and add the xml-stylesheet instruction
    final ProcessingInstruction pi
      = doc.createProcessingInstruction("xml-stylesheet",
                                        "type='text/xsl' href='mvn_dep_mgmt.xsl'");
    doc.insertBefore(pi, root);

    root.setAttribute("version", version);
    root.appendChild(doc.createTextNode("\n"));
View Full Code Here

Examples of org.w3c.dom.Document.createProcessingInstruction()

                case Node.ENTITY_REFERENCE_NODE: {
                    node = factory.createEntityReference(place.getNodeName());
                    break;
                }
                case Node.PROCESSING_INSTRUCTION_NODE: {
                    node = factory.createProcessingInstruction(place.getNodeName(),
                                                               place.getNodeValue());
                    break;
                }
                case Node.TEXT_NODE: {
                    node = factory.createTextNode(place.getNodeValue());
View Full Code Here

Examples of org.w3c.dom.Document.createProcessingInstruction()

            case XMLStreamConstants.CDATA:
                parent.appendChild(doc.createCDATASection(reader.getText()));

                break;
            case XMLStreamConstants.PROCESSING_INSTRUCTION:
                parent.appendChild(doc.createProcessingInstruction(reader.getPITarget(), reader.getPIData()));

                break;
            case XMLStreamConstants.ENTITY_REFERENCE:
                parent.appendChild(doc.createProcessingInstruction(reader.getPITarget(), reader.getPIData()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.