Click to See Complete Forum and Search --> : Entity code for several characters and html tag code


mosquito70
02-04-2010, 06:04 AM
Hi all,
this is my first post and I hope that my problem is not a stupid question ;)

I create a xml file by php, selecting them from a db. So I pass it as to the GXml method of Google Maps
Those datas can have

1) the char "&" and several characters that now I cannot know
2) The html tag
I know that is possibile include ENTITY in the header of the xml file a code like this


<!DOCTYPE xsl:stylesheet[
<!ENTITY shy "& #173;"> <!ENTITY nbsp "& #160;"> <!ENTITY lt "& #38;#60;"> <!ENTITY gt "& #62;"> <!ENTITY amp "& #38;#38;">
<!ENTITY apos "& #39;">


but I don't understand how I can do in my case, which the simple format xml is this.


<?xml version ='1.0' encoding ='UTF-8' ?>
<markers>
<marker lat="37.3824684933803" lng="-6.00377082824707" image="images_localizador.php?logo=1" size="38,50" text="ASDFF" />
<marker lat="37.3828265483107" lng="-5.96574783325195" image="images_localizador.php?logo=1" size="38,50" text="XXXXX" />
<marker lat="37.3817779540436" lng="-5.97231388092041" image="images_localizador.php?logo=1" size="38,50" text="ZZZZ" />
<marker lat="37.4059941817744" lng="-5.97485661506653" image="images_localizador.php?logo=1" size="38,50" text="XXX XX" />
<marker lat="37.3753112987243" lng="-5.96218854188919" image="images_localizador.php?logo=1" size="38,50" text="CCCC DDDD" />
</markers>


(only the element "text" can be a strange characters and tag html code)


Thank's a lot for any suggestions.

Ciao from Madrid :)