29.3 Creating XML Documents (cont.)
- Obtain DOMWriter object from the DOMImplementation
object:
DOMWriter* writer = implementation->createDOMWriter();
writer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);
- "Pretty print" aligns elements
- Default is w/out whitespace
prev
|top
|next