# to xml Converts table data into XML text. ## Flags * `-p`, `--pretty` \: Formats the XML text with the provided indentation setting ## Example ```shell > open jonathan.xml ━━━━━━━━━━━━━━━━ rss ──────────────── [table: 1 row] ━━━━━━━━━━━━━━━━ ``` ```shell > cat jonathan.xml Jonathan Turner http://www.jonathanturner.org Creating crossplatform Rust terminal apps <p><img src="/images/pikachu.jpg" alt="Pikachu animation in Windows" /></p> <p><em>Look Mom, Pikachu running in Windows CMD!</em></p> <p>Part of the adventure is not seeing the way ahead and going anyway.</p> Mon, 05 Oct 2015 00:00:00 +0000 http://www.jonathanturner.org/2015/10/off-to-new-adventures.html http://www.jonathanturner.org/2015/10/off-to-new-adventures.html ``` ```shell > open jonathan.xml | to xml --pretty 2 Jonathan Turner http://www.jonathanturner.org Creating crossplatform Rust terminal apps <p><img src="/images/pikachu.jpg" alt="Pikachu animation in Windows" /></p> <p><em>Look Mom, Pikachu running in Windows CMD!</em></p> <p>Part of the adventure is not seeing the way ahead and going anyway.</p> Mon, 05 Oct 2015 00:00:00 +0000 http://www.jonathanturner.org/2015/10/off-to-new-adventures.html http://www.jonathanturner.org/2015/10/off-to-new-adventures.html ``` Due to XML and internal representation, `to xml` is currently limited, it will: * Only process table data loaded from XML files (e.g. `open file.json | to xml` will fail) * Drop XML prolog declarations * Drop namespaces * Drop comments