## 29.3 Creating XML Documents

- Avoid simple print statements - easy to introduce an error
- Build a `DOMDocument` object
- Still use `DOMImplementation` object to create parser:

  > `DOMImplementation* implementation
  > = DOMImplementation::getImplementation();
  > DOMDocument* doc = implementation->createDocument();
  > doc->setStandalone(true);
  > // An empty document`

- "standalone" flag indicates lack of document type definition

prev |top |next