|
nidas v1.2.3
|
Wrapper class around xerces-c DOMWriter to write XML. More...
#include <XMLWriter.h>

Public Member Functions | |
| XMLWriter () | |
| Constructor. | |
| virtual | ~XMLWriter () |
| Nuke the XMLWriter. | |
| void | setDiscardDefaultContent (bool val) |
| Discard default content. | |
| void | setEntities (bool val) |
| Control writing of entities. | |
| void | setCanonicalForm (bool val) |
| Canonicalize the output. | |
| void | setPrettyPrint (bool val) |
| Format pretty-print. | |
| void | setNormalizeCharacters (bool val) |
| Normalize characters. | |
| void | setSplitCDATASections (bool val) |
| Split CDATA sections. | |
| void | setValidation (bool val) |
| Validation. | |
| void | setWhitespaceInElement (bool val) |
| Whitespace in element content. | |
| void | setXMLDeclaration (bool val) |
| Include xml declaration. | |
| void | setFilter (xercesc::DOMLSSerializerFilter *filter) |
| virtual void | write (xercesc::DOMDocument *doc, const std::string &fileName) |
| virtual void | writeNode (xercesc::DOMLSOutput *const dest, const xercesc::DOMNode &node) |
Private Member Functions | |
| XMLWriter (const XMLWriter &) | |
| No copying. | |
| XMLWriter & | operator= (const XMLWriter &) |
| No assignment. | |
Private Attributes | |
| xercesc::DOMImplementation * | _impl |
| xercesc::DOMLSSerializer * | _writer |
| XMLErrorHandler | _errorHandler |
Wrapper class around xerces-c DOMWriter to write XML.
| XMLWriter::XMLWriter | ( | ) |
|
virtual |
Canonicalize the output.
See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures
| val | true: is not supported in Xerces-c. Default: false. |
References _writer.
Discard default content.
See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures
| val | Boolean value specifying whether to discard default values of attributes and content. Default: true. |
References _writer.
Control writing of entities.
See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures
| val | true: entity references are serialized as * &entityName;. If false, entity references are expanded. Default: true. |
References _writer.
| void XMLWriter::setFilter | ( | xercesc::DOMLSSerializerFilter * | filter | ) |
Normalize characters.
See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures
| val | true is not supported by Xerces-c. Default: false. |
References _writer.
Format pretty-print.
See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures
| val | true: add whitespace to produce an indented form. Default: false. |
References _writer.
Split CDATA sections.
See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures
| val | true: split CDATA sections containing ']]>' or unrepresentable characters in the output encoding. false: signal an errror. Default: true. |
References _writer.
Validation.
See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures
| val | false: do not report validation errors. true: not supported by Xerces-c. Default: false. |
References _writer.
Whitespace in element content.
See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures
| val | true: include text nodes that can be considered ignorable whitespace in the DOM tree. false: not supported by Xerces-c. Default: true. |
References _writer.
Include xml declaration.
See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures
| val | true: include xml declaration. Default: true. |
References _impl, nidas::core::getSample(), and writeNode().
|
virtual |
References _errorHandler, _writer, nidas::core::getSample(), nidas::core::XMLErrorHandler::getXMLException(), and nidas::core::XMLErrorHandler::resetErrors().
Referenced by write().
|
private |
Referenced by writeNode(), and XMLWriter().
|
private |
Referenced by write().
|
private |