1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-10 14:08:40 +02:00
nushell/docs/commands/to_xml.md
Justin Ma c0a1d18e3d
update , regenerate commands' docs and update make_docs script ()
* feat: update , regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

621 B

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

> { "note": { "children": [{ "remember": {"attributes" : {}, "children": [Event]}}], "attributes": {} } } | to xml

Optionally, formats the text with a custom indentation setting

> { "note": { "children": [{ "remember": {"attributes" : {}, "children": [Event]}}], "attributes": {} } } | to xml -p 3