TXmlDocument() > Methods for XML data manipulation xHarbour Developers Network  

oTXmlDocument:toString()

Creates an XML formatted character string.

Syntax

:toString( <nStyle> ) --> cXmlString

Arguments

<nStyle>
This parameter instructs the TXMlDocument object how to create the XML code. #define constants listed in Hbxml.ch are used to specify <nStyle>:

Constants for XML code creation
ConstantValueDescription
HBXML_STYLE_INDENT1Indents XML nodes with one space
HBXML_STYLE_TAB2Indents XML nodes with tabs
HBXML_STYLE_THREESPACES4Indents XML nodes with three spaces
HBXML_STYLE_NOESCAPE8Creates unescaped characters
  in data sections

Description

Method :toString() creates an XML formatted character string containing all nodes and data currently held in the XML tree. The <nStyle> parameter can be used to indent the nodes for readability, or to leave characters in data sections unescaped.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe