Builds a default element with the given properties. Elements should always be created using this method instead of the constructor in order to enable construction of specialized subclasses by deriving custom Document classes. Please note: For no namespace, please use Xml.NO_NAMESPACE
(String namespace, String name)
| 82 | but future versions may throw an exception. */ |
| 83 | |
| 84 | public Element createElement(String namespace, String name) { |
| 85 | |
| 86 | Element e = new Element(); |
| 87 | e.namespace = namespace == null ? "" : namespace; |
| 88 | e.name = name; |
| 89 | return e; |
| 90 | } |
| 91 | |
| 92 | /** Returns the child object at the given index. For child |
| 93 | elements, an Element object is returned. For all other child |