nushell/docs/commands/to_xml.md
JT 8c0a2d3c15
Auto-generate markdown command docs (#4451)
* Finish updating

* a couple improvements

* Update renames

* cleanup examples
2022-02-13 21:22:51 -05:00

29 lines
622 B
Markdown

---
title: to xml
layout: command
version: 0.59.0
---
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
```