Package org.apache.xerces.dom

Examples of org.apache.xerces.dom.DocumentImpl


    NamespaceContext namespaceContext, Augmentations augs)
    throws XNIException {
       
        if (!fDeferNodeExpansion) {
            if (fDocumentClassName.equals (DEFAULT_DOCUMENT_CLASS_NAME)) {
                fDocument = new DocumentImpl ();
                fDocumentImpl = (CoreDocumentImpl)fDocument;
                // REVISIT: when DOM Level 3 is REC rely on Document.support
                //          instead of specific class
                // set DOM error checking off
                fDocumentImpl.setStrictErrorChecking (false);
View Full Code Here


        // full expansion
        else {

            if (documentClassName.equals(DEFAULT_DOCUMENT_CLASS_NAME)) {
                fDocument = fDocumentImpl = new DocumentImpl(fGrammarAccess);
                fDocumentImpl.setErrorChecking(false);
            }
            else {
                try {
                    Class documentClass = Class.forName(documentClassName);
View Full Code Here

     * single element reference.
     */
    private Element createContentModel(XMLContentSpec contentSpec, XMLContentSpec.Node node) {

        Element model = createContentModel(contentSpec, node,
                                           new DocumentImpl(), null);
        return model;

    } // createContentModel(XMLContentSpec.Node):Element
View Full Code Here

    return xin;
  }

    private String toString( String tag )
    {
            Document doc = new DocumentImpl();
            Element elm = this.toXML(doc, tag);
            doc.appendChild(elm);
            return DOMUtils.toString(doc);
    }
View Full Code Here

    this.setValue(DOMUtils.getText(root));
  }

    protected String toString( String tag )
    {
            Document doc = new DocumentImpl();
            Element elm = this.toXML(doc, tag);
            doc.appendChild(elm);
            return DOMUtils.toString(doc);
    }
View Full Code Here

            moPrivateKey = oConfig.getPrivateKey();
            X509Certificate[] oCertChain = oConfig.getCertificateChain();

            try
            {
                Document oDoc = new DocumentImpl();
                KeyInfo oKeyInfo = new KeyInfo(oDoc);
                X509Data oData = new X509Data(oDoc);
                oData.addCertificate(oCertChain[oCertChain.length - 1]);
                oKeyInfo.add(oData);
                msKeyInfo =
View Full Code Here

    * Returns object as a formatted XML string.
    * @param sTab - The characters to prepend before each new line
    */
    public String dump()
    {
        Document doc = new DocumentImpl();
        Element elm = this.toDOM(doc);
        doc.appendChild(elm);
        return DOMUtils.toString(doc);

    }
View Full Code Here

    }
  }

    protected String toString( String tag )
    {
            Document doc = new DocumentImpl();
            Element elm = this.toXML(doc, tag);
            doc.appendChild(elm);
            return DOMUtils.toString(doc);
    }
View Full Code Here

     * Returns object as a formatted XML string.
     * @param sTab - The characters to prepend before each new line
     */
    public String toString()
    {
        Document doc = new DocumentImpl();
        Element elm = this.toDOM(doc);
        doc.appendChild(elm);
        return DOMUtils.toString(doc);
    }
View Full Code Here

     * Returns this XRD with only the selected services (filtered and sorted) as XML.
     * @return
     */
    public String toResultString()
    {
      Document doc = new DocumentImpl();
        Element elm = this.toDOM(doc, true); // filtered
        doc.appendChild(elm);
        return DOMUtils.toString(doc);
    }
View Full Code Here

TOP

Related Classes of org.apache.xerces.dom.DocumentImpl

Copyright © 2018 www.massapicom. 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.