Package org.apache.xerces.dom

Examples of org.apache.xerces.dom.DocumentImpl


   * Returns object as a formatted XML string.
   * @param sTab - The characters to prepend before each new line
   */
  public String dump()
  {
    Document doc = new DocumentImpl();
    Node elm = this.toDOM(doc);
    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

   */
  public Element getDOM()
  {
    if (moElem == null)
    {
      moElem = toDOM(new DocumentImpl());
      moElem.getOwnerDocument().appendChild(moElem);
    }
   
    return moElem;
   
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();
    Node elm = this.toDOM(doc);
    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

    * 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

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

  }
View Full Code Here

    try {

      X509Certificate[] samlCertChain = this.getCertificateChain();

      Document oDoc = new DocumentImpl();
      KeyInfo oKeyInfo = new KeyInfo(oDoc);
      X509Data oData = new X509Data(oDoc);
      oData.addCertificate(samlCertChain[samlCertChain.length - 1]);
      oKeyInfo.add(oData);
      this.samlKeyInfo = DOMUtils.toString(oKeyInfo.getElement(), false, true);
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

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.