MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / createElement

Method createElement

src/org/kxml2/kdom/Node.java:84–90  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected