Manual:Xml.php

Xml.php is a module of static functions for generating XML.

The XML class formats an XML element with given attributes and, optionally, text content.

Element and attribute names are assumed to be ready for literal inclusion.

Strings are assumed to not contain XML-illegal characters; special characters (&lt;, &gt;, &amp;) are escaped but illegals are not touched.