TXmlNode() > Methods for XML code |
Writes an XML formatted character string to a file.
:write( <nFileHandle>, <nStyle> ) --> lSuccess
Constants for XML code creation
Constant | Value | Description |
---|---|---|
HBXML_STYLE_INDENT | 1 | Indents XML nodes with one space |
HBXML_STYLE_TAB | 2 | Indents XML nodes with tabs |
HBXML_STYLE_THREESPACES | 4 | Indents XML nodes with three spaces |
HBXML_STYLE_NOESCAPE | 8 | Creates unescaped characters |
in data sections |
Method :write() writes all XML nodes and data currently held by the TXmlNode object and all sub-nodes to the open file <nFileHandle>. The <nStyle> parameter can be used to indent the nodes for readability, or to leave characters in data sections unescaped.
http://www.xHarbour.com