|
Posted by Harlan Messinger on 10/04/06 18:14
John Salerno wrote:
> Hi all. Been a while since I was in here, but I'm back on the HTML horse
> for now. :)
>
> Anyway, can someone tell me how to include XML data as text in an HTML
> file? I don't know if that makes sense, because I'm not sure of the
> right terms to use (data, content, text, etc.) But here's what I have,
> and instead of just showing all this as text, it omits all of the XML tags.
Certainly, just as the browser "omits" "<p>" and "</table>". They're
tags, not displayable content. The difference is that while the browser
interprets HTML tags in some visually apparent manner, it doesn't know
what to do with your XML tags, so it ignores them altogether.
If you want tags, whether XML or HTML, to appear literally in your
content you need to use "<" (i.e., less than) instead of "<" and
">" (greater than) instead of ">".
Navigation:
[Reply to this message]
|