xml required default (none)The XML to pretty-print. Must be well-formed and have a single root element. On malformed or non-XML input the command returns just the XML declaration line. An empty or blank value gives an empty string (until November 2026 it stopped the page with a fatal error).
[{xmlformat:}]
{xmlformat:<note><to>Tove</to><from>Jani</from><body>Hello</body></note>}
{strlen:{xmlformat:<root><a>1</a><b>2</b></root>}}
{xmlformat:<a><b><c>x</c></b></a>}
{safe:{xmlformat:<a><b><c>x</c></b></a>}}
{strlen:{xmlformat:not xml}}
{strlen:{xmlformat:<a b="12#:30"/>}}
[{ifset::{xmlformat:}}]