Package org.w3c.dom

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


   private Document createUpdateDocument(int rowsAffected, ConnectionDescriptor descriptor) throws XmlBlasterException
   {
      Document document = createEmptyDocument();

      Element root = (Element)document.createElement(descriptor.getDocumentrootnode());
      document.appendChild(root);
      Element row =  (Element)document.createElement(descriptor.getRowrootnode());
      root.appendChild(row);
      Text rows = (Text)document.createTextNode(rowsAffected + " row(s) were affected during the update.");
      row.appendChild(rows);
      return document;
View Full Code Here


   */
  public Object execute(String function, Object callData) throws XException
  {
    Document retDocument = XMLHelper.getDocumentBuilder("Default",
        mDestination.getName()).newDocument();
    retDocument.appendChild(retDocument.createElement(mDestination
        .getName()));

    /*
     * Getting an instance of the LDAPConnection
     */
 
View Full Code Here

     * 1. Creating the root element
     */
    DocumentBuilder builder = getDocumentBuilder(system);
    Document doc = builder.newDocument();
    Element root = doc.createElement(mEncodingSystem);
    doc.appendChild(root);

    /*
     * 2. Getting the interface description
     */
    String interfaceDescriptionFilename = getInterfaceDescriptionFilename(mEncodingSystem);
View Full Code Here

   */
  public Object execute(String function, Object callData) throws XException
  {
    Document retDocument = XMLHelper.getDocumentBuilder("Default",
        mDestination.getName()).newDocument();
    retDocument.appendChild(retDocument.createElement(mDestination
        .getName()));

    /*
     * Getting an instance of the NamedDBConnection
     */
 
View Full Code Here

    Document doc = XMLHelper.getDocumentBuilder("Default", null)
        .newDocument();

    Element root = doc.createElement(mSystem);
    doc.appendChild(root);

    Element emailElement = null;
    Text emailNode = null;

    if (mFromAddress != null)
View Full Code Here

          String[] values = (String[]) obj;
          mSource.setAddress(XBUSSystem.FILENAME_WILDCARD, values[0]);
        }

        Element rootNode = requestDoc.createElement(mSource.getName());
        requestDoc.appendChild(rootNode);

        SortedSet paramSet = new TreeSet(parameters.keySet());
        String key = null;
        Node tmpNode = null;
        String[] values = null;
View Full Code Here

      case ParserInstruction.OpenNode:
        closeHtml = true;
        Element childNode = createElementNS(resultDocument, currentNamespaceURI, domArgument.toLowerCase());
        if (currentElement == null)
        {
          resultDocument.appendChild(childNode);
          currentElement = childNode;
        }
        else
        {
          if (!domArgument.equalsIgnoreCase("html"))
View Full Code Here

    }
    Document resultDocument = builder.newDocument();

    // create root node <i>systemName</i>
    Element root = resultDocument.createElement(systemName);
    resultDocument.appendChild(root);

    // separate the entries
    Vector lines = returnSeparatedEntries(text);
    int lineCounter = 0;
View Full Code Here

    Document doc = XMLHelper.getDocumentBuilder("Default", null)
        .newDocument();

    Element root = doc.createElement(XDomSupport.makeTagNameValid(system
        .getName()));
    doc.appendChild(root);

    Hashtable addresses = system.getAddresses();
    if (!addresses.isEmpty())
    {
      Element addressesNode = doc.createElement("Addresses");
View Full Code Here

        commandEl.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:schemaLocation",
                                 "http://www.xsume.com/Xutil/Command http://www.xsume.com/schema/xutil/c"
                                     + "ommand.xsd");
        commandEl.setAttribute("xmlns", "http://www.xsume.com/Xutil/Command");
        commandEl.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
        resultDoc.appendChild(commandEl);

        TokenInputStream tokens = new TokenInputStream(args);

        // for all form elements...
        Element usage = toolspec.getUsage();
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.