- XML functions and threads
XMLBuildString (Function) In french: XMLConstruitChaîne Retrieves and formats the content of an XML document.
This XML document could:
Syntax
Retrieving the source of an XML document created by XMLDocument Hide the details
<Result> = XMLBuildString(<Name of the XML document> [, <Creation options> [, <Output format>]])
<Result>: Character string Formatted XML document. This result can be:- handled in memory.
  saved in a file in XML format by fSaveText. sent to the server. - ...
<Name of the XML document>: Character string Name of XML document to format. This document was created by XMLDocument and it was modified by the XML functions. <Creation options>: Optional Integer constant Combination of following values: | | XMLCurrentPosition | Generates the XML code from the current position in the XML document (instead of the root). | XMLDocumentDefault (default value) | Generates the XML code with a header and from the root. | XMLFormatting | Generates XML code with formatting (indentation and carriage returns). | XMLNoHeader | Generates the XML code without header. |
<Output format>: Optional Integer constant Indicates the encoding used in the file header: | | XMLEncodingIso8859_1 | Encoding according to the Latin character set | XMLEncodingIso8859_2 | Encoding according to Iso8859_2 | XMLEncodingIso8859_3 | Encoding according to Iso8859_3 | XMLEncodingIso8859_4 | Encoding according to Iso8859_4 | XMLEncodingIso8859_5 | Encoding according to Iso8859_5 | XMLEncodingIso8859_6 | Encoding according to Iso8859_6 | XMLEncodingIso8859_7 | Encoding according to Iso8859_7 | XMLEncodingIso8859_8 | Encoding according to Iso8859_8 | XMLEncodingIso8859_9 | Encoding according to Iso8859_9 | XMLEncodingIso8859_15 | Latin-9 encoding | XMLEncodingUTF8 | UNICODE 8 encoding | XMLEncodingUTF16 | UNICODE encoding Remark: in this case, XMLBuildString generates a 2-byte header to specify the byte order. | XMLNoEncoding (Default value) | No encoding |
Retrieving the source of an XML document found in an xmlDocument variable Hide the details
<Result> = XMLBuildString(<XML document> [, <Creation options>])
<Result>: Character string Formatted XML document. This result can be:- handled in memory.
  saved in a file in XML format by fSaveText. sent to the server. - ...
<XML document>: xmlDocument variable xmlDocument variable containing the XML document to format.Caution: The encoding of the result is defined by the Encoding property of the xmlDocument variable. If no encoding is specified, the XML document will be encoded in UTF-8. <Creation options>: Optional Integer constant Combination of following values: | | XMLDocumentDefault (default value) | Generates the XML code with a header and from the root. | XMLFormatting | Generates XML code with formatting (indentation and carriage returns). | XMLNoHeader | Generates the XML code without header. |
Remarks XML functions and threads If your application uses threads, the XML document is shared between all these threads. For more details on threads, see Managing threads.
This page is also available for…
|
|
|
|