YAML to XML
This command takes a YAML snippet and converts it into XML.
This is useful for validating and troubleshooting your YAML code.
Usage
The yaml-to-xml
command takes two parameters -input
and -output
-
--input
is the YAML document to transform -
--output
is the XML document to be created -
--output
full path is created if it does not exist (likemkdir -p
)
You may omit the
--input
or--output
flags to read or write from stdin or stdout
Examples
Below are a few examples for using the yaml-to-xml
command.
From a file
Reading input redirected from a file
From stdin
Reading input from stdin
directly
From a process
Reading input piped from another process