Previous Up Next

2.7.6  Indent an XML string

The xml_print command formats an XML string.

Example

xml_print("<?xml version='1.0'?><r><c1>bla</c1><c2></c2><c3/></r>")
<?xml version='1.0'?> <r> <c1>bla</c1> <c2></c2> <c3/> </r>

Previous Up Next