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();
        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 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

                        X509Certificate[] arr = new X509Certificate[1];
                        InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("keystore.jks");
                        KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
                        ks.load(is, "password".toCharArray());
                        arr[0] = (X509Certificate)ks.getCertificate("issuercert");
                        Document oDoc = new DocumentImpl();
                        KeyInfo oKeyInfo = new KeyInfo(oDoc);
                        X509Data oData = new X509Data(oDoc);
                        oData.addCertificate(arr[0]);
                        oKeyInfo.add(oData);
                        srv.setKeyInfo(oKeyInfo);
View Full Code Here

   
    X509Certificate[] oCertChain = this.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);
      this.keyInfo = DOMUtils.toString(oKeyInfo.getElement(), false, true);
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

    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);

    } // dump()
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.