generate xml from variable
===

I have a variable which holds an cXml request which I'm sending to a server.
Forget the server-part.
My question is: how do I spit out my variable in cXml format on the page before submitting the form?

for example, let's take this variable:

    $pets = "
     <?xml version=\"1.0\" ?> 
	<cXML xml:lang=\"en\">
	           <note>
                   <from>dog</from>
                   <to>cat</to>
                   <message>comin' for a bite tonight?</message>
               </note>
	</cXML>	
    ";

How do I spit out $pets in xml format?

thanks
        