The Daily Click ::. Forums ::. Klik Coding Help ::. easyxml or not?
 

Post Reply  Post Oekaki 
 

Posted By Message

bubba damage



Registered
  06/12/2007
Points
  16
27th October, 2008 at 04:16:18 -

ive been trying to make heads or tails of easyxml extension
with no avail does a xml have to be set a differant way for the extension commands to work

a yugioh card catalog example below
xml contents

<?xml version="1.0" encoding="US-ASCII" standalone="yes" ?>
<cardset setname="Champion Pack: Game 7"
releasedate="2008-09-16"
card_count="20">
<card id="CP07-EN001"
name="Voltic Kong"
passcode="93151201"
type="Effect Monster"
monster_type="Beast"
attribute="Light"
level="4"
attack="1800"
defense="1000"
rarity="Ultra Rare">
<card_text>When this card inflicts Battle Damage to your opponent, send 1 card from the top of your opponent's Deck to the Graveyard for each face-up LIGHT monster you control.</card_text>
</card>

been trying to read data from a xml and it dont make sense to me ive seen a couple of xmls and they have differant layouts so wich layout will the extension read?

since documentation was not included in the extension im just shooting in the dark.

please need help.

 
n/a

aphant



Registered
  18/05/2008
Points
  1242
27th October, 2008 at 06:22:42 -

Your structure is wrong, it seems. Considering that it's XML, that's quite a feat! Breaking the contents apart like so should work:
<attack>1800</attack>
<defense>1000</attack>

 

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
27th October, 2008 at 08:13:12 -

You forgot a </cardset> at the end.

 
a/n

bubba damage



Registered
  06/12/2007
Points
  16
28th October, 2008 at 02:03:08 -

is there a prog that will convert a type of xml into this easyxml extensions language?

oh yeah i did forget </cardset> on end
because im new to this i copyied the first few lines from the top of the spoiler.xml i have.
but the whole .xml seems to be valid,
but i dont think easyxml can read it properly.

 
n/a

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
29th October, 2008 at 06:11:31 -

I'm not sure, but I don't think easyxml likes the <?xml ?> at the top. Don't ask why.

 
a/n

bubba damage



Registered
  06/12/2007
Points
  16
1st November, 2008 at 06:12:09 -

i had it with xml i did learn a bit but it just keeps getin harder to control so ive made a xml2ini program by autoparsing (used the example "AutoParse" in the easyxmlfun.mfa file) the file i want and sticking [groups] in place the newly made ini. it took awhile to make but its worth it i conververted 151 xmls with ease took upto 10 mins though (puting in lines and taking out lines of data automaticly) but beats manualy making inis im having more success with ini than xml.
MMFD rules.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click