# Need help with XML

**URL:** <https://forum.kirupa.com/t/need-help-with-xml/258694>\
**Category:** Uncategorized\
**Created:** [April 26, 2008, 10:07pm UTC](https://forum.kirupa.com/t/need-help-with-xml/258694 "2008-04-26T22:07:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Macsy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/macsy/32/3238_2.png) [@Macsy](https://forum.kirupa.com/u/Macsy)\
**Post date:** [April 26, 2008, 10:07pm UTC](https://forum.kirupa.com/t/need-help-with-xml/258694/1 "2008-04-26T22:07:14Z")

</div>

hello.  
Im a little confused with XML right now,  
never worked with it before.

i have a XML file that looks like this:  
[AS]  
\<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?\>  
\<spells\>  
\<spell\>  
\<label\>Fire\</label\>  
\<animation\>fire\</animation\>  
\<levels\>  
\<1\>  
\<dmg\>2\</dmg\>  
\<mana\>5\</mana\>  
\</1\>  
\<2\>  
\<dmg\>4\</dmg\>  
\<mana\>6\</mana\>  
\</2\>  
\<3\>  
\<dmg\>7\</dmg\>  
\<mana\>8\</mana\>  
\</3\>  
\<4\>  
\<dmg\>10\</dmg\>  
\<mana\>11\</mana\>  
\</4\>  
\</levels\>  
\</spell\>  
\</spells\>  
[/AS]

Is this a good a good buildt for XML?  
Any other way to make it better?  
I wonder how i would get the length of the levels nodes?
