|
SYNOPSIS
int xmlWriterSetIndent(xmlWriter writer, int indent
[, string indentString])
Parameters:
-
writer - the xmlWriter -
indent
-
0 (default) - do not indent -
1 - indent output
-
indentString (optional) - What string to use for
indenting. The default is a single space.
Returns:
DESCRIPTION
xmlWriterSetIndent() sets writer to automatically apply
line breaks and spaces between XML elements to give an indented
structure to the XML file.
Note that all spaces between XML elements are significant and
technically doing this changes the contents of the xml file (see the
xmlTree Text Nodes and Children (here)
for details).
EXAMPLE
<$ret = (xmlWriterSetIndent($writer, 1, ' '))>
SEE ALSO
xmlWriterNewToFile,
xmlWriterNewToString,
xmlWriterStartDocument
Copyright © Thunderstone Software Last updated: Mon Feb 18 10:28:15 EST 2013
|