开发者

does xml ignores (,) OR (-)??? (xml of flash object)

开发者 https://www.devze.com 2023-01-02 16:07 出处:网络
<SCENE> <xml_image>telcos.jpg</xml_image> <xml_bigtext>TELCOS</xml_bigtext>
<SCENE>
<xml_image>telcos.jpg</xml_image>
<xml_bigtext>TELCOS</xml_bigtext>
<xml_sma开发者_如何学编程lltext>New-Age Properties, Wifi Everywhere</xml_smalltext>
<xml_align>right</xml_align>
<xml_bigtextcolor>#ffffff</xml_bigtextcolor>
<xml_bigtextshadow>#0000000</xml_bigtextshadow>
<xml_bigtextcolor>#ffffff</xml_bigtextcolor>
<xml_bigtextshadow>#0000000</xml_bigtextshadow>

this is the xml file of my flash.But ignores the hyphen(-) and comma(,) like New-Age comes like NewAge and Properties, comes like PropertiesWifi WHY?


, and - are perfectly fine in XML. I guess whatever is parsing your XML is ignoring these characters. Maybe you need to escape them in some way?


Try wrapping your XML node values in <![CDATA[]]>, it`s good practice anyway!

(On a completely different note, highfun is the most hilarious spelling of hyphen I`ve seen :) )

0

精彩评论

暂无评论...
验证码 换一张
取 消