Reply to Re: how to include xml code as content in an html file?

Your name:

Reply:


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 "&lt;" (i.e., less than) instead of "<" and
"&gt;" (greater than) instead of ">".

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация