Writes this element and all children to the given XmlWriter.
(XmlSerializer writer)
| 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 | } |
nothing calls this directly
no test coverage detected