FDO API Reference Feature Data Objects

static FDO_API_COMMON FdoXmlWriter* FdoXmlWriter::Create FdoIoTextWriter writer,
FdoBoolean  defaultRoot = true,
LineFormat  lineFormat = LineFormat_None,
FdoSize  lineLength = 0
[static]
 

Constructs an XML writer on a text writer.

Parameters:
reader Input the text writer.
defaultRoot true: all elements written are wrapped in a default root element, named "DataStore". false: the default root element is not written. In this case, the first element written (via WriteStartElement() ) becomes the root element. The caller is responsible for ensuring that only one root element is written (the XML standard disallows multiple root elements).
lineFormat Input Line break and indentation options for the output document.
lineLength Input maximum line length. If 0 there is no maximum. Otherwise, a line break is added before an XML attribute is written, if the attribute would have caused the current line to exceed this length.
Returns:
Returns FdoXmlWriter

Comments or suggestions? Send us feedback.