Java XML Element Create createElement(Document doc, String elementNamespace, String elementName)

Here you can find the source of createElement(Document doc, String elementNamespace, String elementName)

Description

create Element

License

RPL License

Declaration

public static Element createElement(Document doc,
            String elementNamespace, String elementName) 

Method Source Code

//package com.java2s;
/*/*from   ww w  . j  a va2 s .co m*/
 * Unless explicitly acquired and licensed from Licensor under another license, the contents of
 * this file are subject to the Reciprocal Public License ("RPL") Version 1.5, or subsequent
 * versions as allowed by the RPL, and You may not copy or use this file in either source code
 * or executable form, except in compliance with the terms and conditions of the RPL
 *
 * All software distributed under the RPL is provided strictly on an "AS IS" basis, WITHOUT
 * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND LICENSOR HEREBY DISCLAIMS ALL SUCH
 * WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE, QUIET ENJOYMENT, OR NON-INFRINGEMENT. See the RPL for specific language
 * governing rights and limitations under the RPL.
 *
 * http://opensource.org/licenses/RPL-1.5
 *
 * Copyright 2012-2015 Open Justice Broker Consortium
 */

import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class Main {
    public static Element createElement(Document doc,
            String elementNamespace, String elementName) {

        Element element = doc
                .createElementNS(elementNamespace, elementName);
        return element;

    }
}

Related

  1. createElement(Document d, String name, String value)
  2. createElement(Document d, String name, String value, boolean isCDATA)
  3. createElement(Document d, String tagName)
  4. createElement(Document doc, Node parent, int depth, String name, String contents)
  5. createElement(Document doc, Node parent, String tagName)
  6. createElement(Document doc, String expr, Element parentElement, String elementName, boolean firstChild, Map attributes)
  7. createElement(Document doc, String name, Map attributes)
  8. createElement(Document doc, String name, Object text, Map attributes)
  9. createElement(Document doc, String name, String prefix, String namespaceURI)