how can I add to each node I add to xml a unique index value for example I have
<events>
<event><id>0</id>
</event>
<event><id>1</id></event>
</events>
I want to add another event "node" that the id will be 6
/edited/
i have created xsd an added to the id elment autoincrease =true but idont really know what to do next ? help