Returns a temporal File with the file converted with the correct indentation.
1 dom.prettyPrint
<dom.prettyPrint
encoding='encoding'
omitxml='omitxml'
>
<Document /> *
</dom.prettyPrint>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aencoding | string | iso-8859-1 | Indicates the coding of characters which should be used to encode the resulting string. | ||
Aomitxml | boolean | true | Omit in the resulting string the declaration of type of xml documenyt (xml ... declaration), which allows the resulting string to be composed of the main node and its content. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
EDocument | Document |
Returns | |
---|---|
Type | Description |
String | String with corrected indentation. |
Example
PrettyPrint is a node from an XML file.
Copy
<xsql-script name='dom_prettyPrint'> <body> <println> <dom.prettyPrint> <dom.parse> <file name="test.xml" type="absolute"/> </dom.parse> </dom.prettyPrint> </println> </body> </xsql-script>