prettyxml(X;)
Converts an XML special value X into a fully formatted (indented, etc.) text representation. (Available as of version 16.13)
Syntax
prettyxml(X;)
Input
Argument | Type | Description |
---|---|---|
X |
any | A XML special value. |
|
The second argument is currently ignored. |
Return Value
Returns a fully formatted XML text representation of the input column or value.
Example
Here we can see how prettyxml()
generates easy-to-read formatted
(indented) XML, as compared to enxml()
which just gives you parseable text.
It operates over the saved query of a small example QuickApp.
<dynamic x=""> <do action_="getquery" path_="pub.doc.samples.sample_data_documentation.sampdata_qa" xmlvalue_="@x"/> <layout> <widget class_="text" label_="Pretty" text_="{prettyxml(@x;)}"/> <widget class_="text" label_="Ugly" text_="{enxml(@x;)}"/> </layout> </dynamic>