User Tag List

Results 1 to 2 of 2

Thread: xml and & parse

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2006
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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


    xmlparsetest.rar
    thats all thats really hassling me.
    help please?.

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2006
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: xml and & parse

    seems that i have to put
    Code:
    &
    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- 
    ' = '
    " = "
    &lt;   = <
    &gt;   = >

    my xml file would look like this now
    Code:
    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>
    <cardset setname="Raging &amp; Battle"
    	 releasedate="9999-02-12"
    	 card_count="12320">
    	<card id="RGBD-EN000"
    		name="Battle &amp; torm"
    		passcode="99999999"
    		type="Effect &amp; 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.

Similar Threads

  1. Manually parse a json file
    By StingRay in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th September 2013, 02:47 PM
  2. Parse PDF
    By MJK in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th November 2010, 04:44 PM
  3. How can I parse GET data from the Get object?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 18th October 2010, 09:53 PM
  4. Delayed Parse Setting
    By Blood_Wist in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th February 2009, 07:06 PM
  5. Parse a text file
    By kungsangun in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th March 2008, 03:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •