Click to See Complete Forum and Search --> : Dispalying Code


Youngblood_97
07-16-2003, 08:58 AM
Can anyone help me out? I am trying to display dynamic xml code in a html page but, it keeps trying to use the code as part of the html instead of just displaying it. Are there tags I can throw around the code to tell the HTML that "this is code display as shown and don't use this" I tried <code> tags and <pre> tags but this didn't work. Any thoughts???

PS This is generated dynamic so I can't change the element tags.

pyro
07-16-2003, 09:34 AM
Change your < to &lt; and your > to &gt;

[edit - just noticed that it is dynamically generated, so you may have to use something to replace them when it is generated]

Youngblood_97
07-16-2003, 09:35 AM
Actually found it :) use the <xmp> any code here </xmp> much easier then changing all the tags