Java XML Element Create createElement(Document doc, String tagName)

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

Description

create Element

License

Open Source License

Declaration

public static Element createElement(Document doc, String tagName) 

Method Source Code

//package com.java2s;

import org.w3c.dom.Document;

import org.w3c.dom.Element;

public class Main {
    public static Element createElement(Document doc, String tagName) {
        return doc.createElementNS(null, tagName);
    }//from  w w w  .  j  a v  a 2s .c om
}

Related

  1. createElement(Document doc, String name, Map attributes)
  2. createElement(Document doc, String name, Object text, Map attributes)
  3. createElement(Document doc, String name, String prefix, String namespaceURI)
  4. createElement(Document doc, String tag, String data)
  5. createElement(Document doc, String tag, String nsURI, String prefix)
  6. createElement(Document document, Element parent, String name)
  7. createElement(Document document, QName name)
  8. createElement(Document document, String name, float value)
  9. createElement(Document document, String name, Map attributes, Element... children)