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

Your name:

Reply:


Posted by Andy Dingley on 10/05/06 11:02

Harlan Messinger wrote:

> 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 ">".

Sorry, I'd totally misunderstood the OP's question. Harlan is right
here, assuming that you do want the source code of the XML to be
visible on the page. I thought they'd intended to use the XML as data.

Encode > as well as <, or else you'll go mad trying to keep track. You
don't _always_ have to encode such things, but it's certainly easier
(for humans) if you do

[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

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