Theme functions

The following theme functions are available for safely writing XML to the screen. We're assuming you want to present the XML as viewable code, not functional XML.

theme_xml
theme_xmltext
theme_xml_codemirror (you must enable xml_field_codemirror module)

Field formatters

Using the following field formatters allow the safe output of XML code as well.

Escaped XML for display
Read-only Textarea
Read-only CodeMirror XML