Allows enabling/disabling different XML parsing options.
XmlAPI.bdh
XmlSetOption( in nOption : number, in bValue : boolean ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
nOption |
Option that should be either enabled (true) or disabled (false). Current option values are:
|
bValue | True to enable the option, false to disable it. |
dcltrans transaction TMain var hDocument : number; sXmlString : string; begin XmlSetOption(XML_OPT_PRESERVE_WHITESPACE, true); hDocument := XmlCreateDocumentFromXml("<root> <child1 attr1='avalue1'>childvalue1</child1>" "<child2 attr1= 'avalue2'>childvalue2</child2></root>"); XmlGetXml(hDocument, sXmlString); writeln(sXmlString); end TMain;