2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: to xml
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
Convert table into .xml text
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> to xml --pretty```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `--pretty {int}`: Formats the XML text with the provided indentation setting
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Outputs an XML string representing the contents of this table
|
|
|
|
```shell
|
|
|
|
> { "note": { "children": [{ "remember": {"attributes" : {}, "children": [Event]}}], "attributes": {} } } | to xml
|
|
|
|
```
|
|
|
|
|
|
|
|
Optionally, formats the text with a custom indentation setting
|
|
|
|
```shell
|
|
|
|
> { "note": { "children": [{ "remember": {"attributes" : {}, "children": [Event]}}], "attributes": {} } } | to xml -p 3
|
|
|
|
```
|