-
xml and & parse
using easyxml :cool:
i have trouble with my test.xml being parsed
with the "&" character not showing in result of parsing.
turning it into test.ini
attached .mfa and .xml in rar :o
xmlparsetest.rar
thats all thats really hassling me. :(
help please?.
-
Re: xml and & parse
seems that i have to put
:o in place of a ampersand character (&) in a xml
so when using easyxml's parsing process translates it to a & character and not delete it from the parsed result.
so
Code:
& = &
-found others characters as also-
' = '
" = "
< = <
> = >
my xml file would look like this now
Code:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>
<cardset setname="Raging & Battle"
releasedate="9999-02-12"
card_count="12320">
<card id="RGBD-EN000"
name="Battle & torm"
passcode="99999999"
type="Effect & Wonster"
monster_type="binged Beast"
attribute="Darkest"
level="50"
attack="1200"
defense="1400"
rarity="Secret Bare">
<card_text> This card gains 111100 ATK for every face-up binged ceast-Type monster you & control. Once per turn, if you control 3 or more binged ceast-Type monster, you can destroy 1 Spell or Tap Card your opponent controls.</card_text>
</card>
</cardset>
:blush: id thought id share with others because it had me stumped for a little while why my characters were getting deleted when parsed.
and other info..
referances are from
http://www.w3.org/TR/REC-xml/#dt-markup
and a read here too
http://stackoverflow.com/questions/871963/special-characters-in-xml-files-processing-with-the-dom-api
cheers. :D