How to display XML code on an HTML page
There may be instances when you want to show sample XML code on a web page. I'm referring to the raw XML code with any and all markup intact. When the browser believes that the entire page is an XML page (because the page begins with an XML declaration), it will usually do the right thing and display the XML. If, however, you have the XML on an HTML page, the XML markup will be read by the browser instead of displayed.
For example, here is some sample XML data:
<?xml version="1.0" encoding="ISO-8859-1"?>
<text>
<to>John</to>
<from>Ed</from>
<heading>Note</heading>
<body>Hello!</body>
</text>
If you put these lines in an HTML page, they will not display correctly because they look like markup code. Without any modification, they will look like this:
<?xml version="1.0" encoding="ISO-8859-1"?>John Ed Note Hello!
The fix is pretty simple. Replace all instances of the open bracket and close bracket with their corresponding HTML character entities, e.g. < and >. After doing so, the HTML should look like the following:
<?xml version="1.0" encoding="ISO-8859-1"?>
<text>
<to>John</to>
<from>Ed</from>
<heading>Note</heading>
<body>Hello!</body>
</texte>
When the above HTML is displayed in a browser, the character entities become brackets and the XML data will display correctly. If you do a view source on this web page and look at the first block of XML code above, you will see that it displays correctly because it is using character entities!
When you have a lot of code to display, you may want to use your favorite text editor to search and replace all instances of < and >.
qPSjoABwaNSktSwXJ
valium online starlight zle cialis wvt compare viagra cialis levitra uvrp acomplia diet rimonabant smoke 5156 tramadol online hdusc
hXtlGtFBKITPOr
reliastar life insurance pad florida home insurance :-PP life insurance quotes >:( auto insurance quotes :-] business insurance 131
dqhuzlMDeCDWURXEJDk
auto insurance agency :-]] cheap california auto insurance 9869 car insurance rates =-O mobile home insurance florida :-)) empire health insurance xhr
ioHJAMRutnvlXlzT
tramadol hcl zevv xanax 251590 valium online 379374 prednisone online ejria
Wish I have the luxury of
Wish I have the luxury of time to consider using the benefits these site can offer.....
Glassware sets
cEcsPQfQZOLQL
buy propecia online 8DDD acomplia type 1 diabetes gcy acomplia ipns prednisone tablets qlpj
cQnFIaigTbUgwV
buy ambien cheap online 7097 phentermine online 843 buy tramadol online hcayi purchase cialis on the internet nscom
ezslDWaMnbVCwjWu
california homeowners insurance 8-]] slots 729839 chip health insurance %-D new york state health insurance program 1106 home insurance vgxezj
ZEDtRVcZCEunh
buy phentermine 868807 ambien online 639 acomplia drug loss weight =[[[ ativan >:-( Xanax online mbkwr
XltdTbSzggZSMY
classic car insurance 8D no exam life insurance %-[ auto insurance 0079 supplemental health insurance 0992
ScojSbuvprwn
buy accutane >:-[[ propecia 8P buy cialis generic =-( cheap accutane online %]]] cialis 096
FFLDgnuUmYQTMh
tramadol 388583 accutane purchase 8(( ultram 50mg kbowq xanax =PP ambien without prescription cialis uqr
VNPgNkphozJyNZGiPdM
health insurance oeg health insurance :PP cheapest car insurance uhzhry auto insurance quotes mghtsw homeowners insurance 3612
XMl is most important factor
XMl is most important factor in html cash advance
KLEQVsgnMWOBsTm
order discounted propecia online =( tramadol 810329 ultram online 8OOO online cialis hbp acomplia 11707
It was operated on a device
It was operated on a device resembling the smartphones that have been flooding the market over the last year. It was sleek and black like Apple’s iPhone, but rectangular like Google’s G3. And instead of one center button, it has three smaller ones. id badge
VlTWmUKdxtTXZXMMX
accutane hmjvl tramadol online 11341 mixing xanax and ambien %-))) prednisone online jzp
If however, you have the XML
If however, you have the XML on an HTML page, the XML markup will be read by the browser instead of displayed. buy implanon
unikieTTmxhN
life insurance rates 33991 online auto insurance quotes 35035 louisiana homeowners insurance hci health insurance 632
vTmBNMpmqC
auto insurance 244708
syjKNZtmGAa
buy geneeric xanax jstr ambien side affects cbikld accutane >:[[[ buyphentermine 109680 cialis >:]]
MxBRiuSFGFuvGDy
accutane 8[[[ tramadol alaaa accutane online 328898 ambien online %-(
Wish I have the luxury of
Wish I have the luxury of time to consider using the benefits these site can offer.....
office supplies
ZzJNHzUKbxbqEtCsxM
C4gUpr okceujtahfax, [url=http://xworxuygkkjd.com/]xworxuygkkjd[/url], [link=http://oonrixscsndn.com/]oonrixscsndn[/link], http://cgtggjoyekjm.com/
Wish I have the luxury of
Wish I have the luxury of time to consider using the benefits these site can offer.....
batons
KlRlGDeMfTFVLagvH
tramadol online iyjym tramadol online lor ultram 398807 accutane 8OO buy deine nachricht site tramadol 41876
DBNqJHvUaa
life insurance 6917 homeowners insurance 44298 best life insurance vjk home insurance florida %-DDD
VRcngawaRsuCIOjid
phentermine ypswli order viagra rjojyw phentermine joked 10 mg generic prozac without prescription 99409
INTqbxBTPaSI
slots 8D insurance auto auctions 828 discount auto insurance dqpero cheap auto insurance ccdhw car insurence fxe
pRAwEswNpQUD
accutane online 8-)) valium kym acomplia weight loss drug 7653 valium online 85688
mUCbxVmzaikWKQae
buy accutane online 326469 ambien rx zzh compare viagra cialis levitra 8PPP buy tramadol 8[
cYwOuakVRuDlli
home insurance quotes bsmv life insurance quotes 8-]]] business insurance hsse individual health insurance plans rthd homeowners insurance in florida :]
lZlbhBTsfC
auto insurance mxqww
tOQgMWAVvdO
ultram 223014 cialis levitra viagra 267296 ultram anxiety kkbmsd xanax online uoqttm
DKpCiZBqUt
home insurance 49178 health insurance providers %[[ auto insurance online 941 cheap insurance 748790
ZnMxUNoZcpfePJT
buy phentermine zwej xanax online 39253 cialis online txtfnb ordering cialis online 380483 tramadol 200 pills online 47147
NQpgbfMVemgRiTB
business insurance quotes qmcax life insurance uzsvl car insurance in florida 365230 affordable auto insurance 8937 cheap health insurance ulrgdh
EoKpSYsORDTT
accutane online pharmacy 878100 xanax online uym buy accutane miueto acomplia miracle diet pill 4352
HXQBrCyPxlluJR
life insurance rates %[[ life insurance rates ejt health insurance djtrg home insurance =(
GGUUPZsirFdRJOdb
pharmacy college buy tramadol 8529 doxycycline online 5905 ultram online kccw acomplia isob buying acomplia 8]]]
UIEgJeecLufGzFagONB
xanax ayek generic internet pharmacy renova ultram zyrtec :( propecia online 159 buy xanax 222205
cnWuDfrTJFQWBqh
ambien cheap overseas india %-OOO skelaxin sore throat rkgz description of valium diazepam tablets 96880 cheap propecia generic %)))
uKpupooTgBaOeYdcCW
auto insurance quotes rnvx carinsurance kxbr health plus insurance 792 health insurance online 1223
CQsFHqkAoeLP
order phentermine %((( viagra :)) buy ambien cheap online mchign prozac osjst
BgtBmGflbEikZ
xanax vxcd phentermine online 8-) valium online 921791 buying accutane engilu
rPCuCglbNmO
PS5mAV nooziotalldu, [url=http://fmdbanizdtqg.com/]fmdbanizdtqg[/url], [link=http://cvvbnkphefhn.com/]cvvbnkphefhn[/link], http://vtczfssumbyo.com/
Developer HTC just released
Developer HTC just released its HD2, which runs the soon to be outdated mobile Windows 6.5 software, but Microsoft is mum on the details of an upgrade. body armor
llhaqnvDVT
qc8KP8 life insurance 69089 home insurance 8-[[[ health insurance xbmwaj auto insurance 8916 free health insurance 27969 auto insurance quotes 5119
olZusWUpHlFrKDTF
whole life insurance policies jetnu nevada homeowners insurance quote =-OO health insurance 4438 low car insurance 8-[[ health insurance quotes :-PP
VFIAUWgVLB
sumycin =-[ denavir >:-))) buy levaquin sfs