The createElement method of the Document class contains the following signatures:
createElement(Element parent, int type, Name tag, String text)
createElement(int type, String tag)
createElement(int type)
Creates a new element for the given element type and tag name using the ElementFactory for this Document. This method allows the Document class to be used as an ElementFactory itself.
public final Element createElement(Element parent, int type, Name tag, String text);
parent | The parent element. |
type | The element type. |
tag | The element tag name. |
text | The element text. |
Creates a new element for the given element type and tag name.
public final Element createElement(int type, String tag);
type | The element type. |
tag | The element tag name. |
Creates a new element for a given element type with a null tag name.
public final Element createElement(int type);
Returns the element created.
type | The element type. |