Java XML Duration Add appendElementNS(Element parent, String namespaceURI, String localName)

Here you can find the source of appendElementNS(Element parent, String namespaceURI, String localName)

Description

Appends a new empty child element with the given namespace and name.

License

Apache License

Declaration

public static Element appendElementNS(Element parent, String namespaceURI, String localName) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License"); you may not

import org.w3c.dom.Element;

public class Main {
    /** Appends a new empty child element with the given namespace and name. */
    public static Element appendElementNS(Element parent, String namespaceURI, String localName) {
        Element ret = parent.getOwnerDocument().createElementNS(namespaceURI, localName);
        parent.appendChild(ret);//from  ww w  . j a v a2  s  . c om
        return ret;
    }
}

Related

  1. appendElement(Element parent, String tagName, String value)
  2. appendElement(Element parent, String type)
  3. appendElement(Node parent, String name)
  4. appendElement(Node parent, String name)
  5. appendElement(Node parent, String tagName)
  6. appendStringElement(Element parentElement, String nodeName, String nodeValue)
  7. appendText(Element parent, String content)
  8. appendTextElement(Element parent, String element, long value)
  9. appendTextElement(Element parent, String name, String content)