Package org.openntf.domino.utils.xml

Examples of org.openntf.domino.utils.xml.XMLDocument


  protected XMLNode getDocumentElement() {
    return dxl_.getDocumentElement();
  }

  protected void loadDxl(final String xml) {
    dxl_ = new XMLDocument();
    try {
      dxl_.loadString(xml);
    } catch (SAXException e) {
      DominoUtils.handleException(e);
    } catch (IOException e) {
View Full Code Here


      DominoUtils.handleException(e);
    }
  }

  protected void loadDxl(final InputStream is) {
    dxl_ = new XMLDocument();
    try {
      dxl_.loadInputStream(is);
    } catch (SAXException e) {
      DominoUtils.handleException(e);
    } catch (IOException e) {
View Full Code Here

      is.close();

      // Set some defaults
      Session session = getAncestorSession();
      String dataDirectory = session.getEnvironmentString("Directory", true);
      XMLDocument dxl = getDxl();
      dxl.selectSingleNode("/scriptlibrary/code/javaproject").setAttribute("codepath", dataDirectory);

    } catch (IOException e) {
      DominoUtils.handleException(e);
    }
  }
View Full Code Here

      }

      // See if we ended
      if (endIndex > -1) {
        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
        XMLDocument xml = new XMLDocument();
        xml.loadInputStream(bis);

        if (DEBUG)
          System.out.println("want to add note of class " + xml.getDocumentElement().getAttribute("class"));
        DXLNote note = DXLNote.create(xml.getDocumentElement());
        notes_.add(note);
        notesByNoteId_.put(note.getNoteId(), note);
        notesByUniversalId_.put(note.getUniversalId(), note);

        inNote = false;
View Full Code Here

    return getDxl().getDocumentElement();
  }

  protected void loadDxl(final String xml) {

    dxl_ = new XMLDocument();
    try {
      dxl_.loadString(xml);
    } catch (SAXException e) {
      DominoUtils.handleException(e);
    } catch (IOException e) {
View Full Code Here

      DominoUtils.handleException(e);
    }
  }

  protected void loadDxl(final InputStream is) {
    dxl_ = new XMLDocument();
    try {
      dxl_.loadInputStream(is);
    } catch (SAXException e) {
      DominoUtils.handleException(e);
    } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.openntf.domino.utils.xml.XMLDocument

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.