having trouble with XML parser C#

Hi, i am trying to make a xml parser, jowever i am getting an error saying "XmlException: Attribute name and qualified name must be identical "

could you please help me with making this over?
I have added the parser script, and the sample xml file in the attachment.

Thank you in advance…

384291–13252–$xml_parser_153.rar (1.86 KB)

help is really welcome :confused:

Not to obvious but look at your XML

<?xml version="1.0" encoding="us-ascii"?>

<weapons>
	<item attack="true"	damageMin="15" damageMin="18" shieldMin="0" shieldMax="0" onehand ="true" side="right" info="Kazma acaip guzel bir silahtir1">kazma</item>
	<item attack="true"	damageMin="15" damageMin="18" shieldMin="0" shieldMax="0" onehand ="true" side="right" info="Kilic acaip guzel bir silahtir2">kilic</item>
	<item attack="true"	damageMin="15" damageMin="18" shieldMin="0" shieldMax="0" onehand ="false" side="right" info="OK acaip guzel bir silahtir3">ok</item>
	<item attack="false" damageMin="0" damageMin="0" shieldMin="6" shieldMax="6" onehand ="true" side="left" info="Kalkan acaip guzel bir silahtir4">kalkan</item>
</weapons>

Now, if you placed this code in C# in visual studio it would have puke a very specific message back at you… an error… about the xml…

so… with a flip of the write and a few magic words…

Our new xml file is now…

<?xml version="1.0" encoding="us-ascii"?>

<weapons>
	<item attack="true"	damageMin="15" damageMax="18" shieldMin="0" shieldMax="0" onehand ="true" side="right" info="Kazma acaip guzel bir silahtir1">kazma</item>
	<item attack="true"	damageMin="15" damageMax="18" shieldMin="0" shieldMax="0" onehand ="true" side="right" info="Kilic acaip guzel bir silahtir2">kilic</item>
	<item attack="true"	damageMin="15" damageMax="18" shieldMin="0" shieldMax="0" onehand ="false" side="right" info="OK acaip guzel bir silahtir3">ok</item>
	<item attack="false" damageMin="0" damageMax="0" shieldMin="6" shieldMax="6" onehand ="true" side="left" info="Kalkan acaip guzel bir silahtir4">kalkan</item>
</weapons>

Note, our duplicate min is now a max…
This is just the begining…

Have fun on the next part.

LMAO, I actually looked for that and missed it. Oi, serves me right for trying to debug in the morning. :smile: Good eye zumwalt!

thank you, it seems like i better get into unity+visual studio…