Logo Search packages:      
Sourcecode: lib-dom-java version File versions  Download package

Element org::w3c::dom::Document::createElement ( String  tagName  )  throws DOMException [inherited]

Creates an element of the type specified. Note that the instance returned implements the Element interface, so attributes can be specified directly on the returned object.

Parameters:
tagName The name of the element type to instantiate. For XML, this is case-sensitive. For HTML, the tagName parameter may be provided in any case, but it must be mapped to the canonical uppercase form by the DOM implementation.
Returns:
A new Element object.
Exceptions:
DOMException INVALID_CHARACTER_ERR: Raised if the specified name contains an invalid character.


Generated by  Doxygen 1.6.0   Back to index