FDO API Reference Feature Data Objects

XmlWriter::XmlWriter NAMESPACE_OSGEO_COMMON_IO::IoStream *  stream,
System::Boolean  defaultRoot,
NAMESPACE_OSGEO_COMMON_XML::XmlWriter::LineFormat  lineFormat,
System::UInt32  lineLength
 

Constructs an XML writer on a stream.

Parameters:
stream Input the stream to write.
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).
indent Input indentation string for XML elements. If NULL the XML document contains no line breaks and elements are not indented. if L"" then the XML document has a line break after every end element tag but no elements are indented. Otherwise, this string must only contain spaces or tabs; the XML document has a line break after every end element and each element start is prepended with a repetition of this string. The string is repeated according to the element's nesting level.
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 XmlWriter

Comments or suggestions? Send us feedback.