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

Method write

src/org/kxml2/kdom/Element.java:309–334  ·  view source on GitHub ↗

Writes this element and all children to the given XmlWriter.

(XmlSerializer writer)

Source from the content-addressed store, hash-verified

307 * Writes this element and all children to the given XmlWriter. */
308
309 public void write(XmlSerializer writer)
310 throws IOException {
311
312 if (prefixes != null) {
313 for (int i = 0; i < prefixes.size (); i++) {
314 writer.setPrefix (getNamespacePrefix (i), getNamespaceUri (i));
315 }
316 }
317
318 writer.startTag(
319 getNamespace(),
320 getName());
321
322 int len = getAttributeCount();
323
324 for (int i = 0; i < len; i++) {
325 writer.attribute(
326 getAttributeNamespace(i),
327 getAttributeName(i),
328 getAttributeValue(i));
329 }
330
331 writeChildren(writer);
332
333 writer.endTag(getNamespace (), getName ());
334 }
335}

Callers

nothing calls this directly

Calls 11

getNamespacePrefixMethod · 0.95
getNamespaceUriMethod · 0.95
getNamespaceMethod · 0.95
getNameMethod · 0.95
getAttributeCountMethod · 0.95
getAttributeNamespaceMethod · 0.95
getAttributeNameMethod · 0.95
getAttributeValueMethod · 0.95
setPrefixMethod · 0.80
writeChildrenMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected