Display xml content in a <div>

Sudhindra Kulkarni <[email protected]> Fri, 10 Apr 2009 08:59:25 +0530
Newsgroups gmane.comp.web.html.general
Message-ID <[email protected]>
Hi,

I have the following sample file and I want to be able to display xml
content as xml only...

<body>
  <div>
  <animal>
  <name>cat</name>
  <legs>4</legs>
  </animal>
  </div>

  </body>

The current output on browsers is cat 4 ... I want the entire xml
<animal><name>... displayed..

I guess all the tags are dropped since < is not escaped and <animal> is not
a valid tag...

I need to do this since I cannot escape all < with &lt since the xml is
fetched from a dvice..

Thanks,

Sudhi