Display xml content in a <div>

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

Received on Friday, 10 April 2009 07:23:16 UTC