author: mga [+], Submitted: 01.15.03 8a • Last Edit: 12.12.06 9a

usage

msg1 { Sighs [+], posted: 05.29.03 3a•-, top [^] }
this function of your is very good, but anyways
<menu>
<item>INFO</item>
<item>KLIENTI UN ATZINIBA</item>
<item>DARBIBAS VIRZIENI</item>
<item>VESTURE</item>
<item>PIEREDZE</item>
<item>GALERIJA</item>
<item>SADARBIBAS PARTNERI</item>
<item>ATBALSTAM</item>
</menu>

it somehow returned as object with only one propery item: ATBALSTAM

and it seems that theres no way I could use dynamic length propery like objectName.length?
msg2 { mga [+], posted: 05.29.03 8a•-, top [^] }
try this:
<menu>
<item>
<name>INFO</name>
</item>
<item>
<name>KLIENTI UN ATZINIBA</name>
</item>
<item>
<name>DARBIBAS VIRZIENI</name>
</item>
<item>
<name>VESTURE</name>
</item>
<item>
<name>PIEREDZE</name>
</item>
<item>
<name>GALERIJA</name>
</item>
<item>
<name>SADARBIBAS PARTNERI</name>
</item>
<item>
<name>ATBALSTAM</name>
</item>
</menu>
msg3 { nathfy [+], posted: 08.07.03 11a•-, top [^] }
does exactly what it says on the tin.

cheers

nath
msg4 { saxxi [+], posted: 10.30.06 3a•-, top [^] }
hi
i tried this function and works perfectly.
I needed also to insert some new childs too. Do you know if its possible to modify the function to get is it possible to get something like this?

<main>
<child id="1">
<firstName>bob</firstName>
<lastName>patino</lastName>
</child>

<child id="2">
<firstName>john</firstName>
<lastName>doe</lastName>
<otherprop id="1">
<test_a>value</test_a>
<test_b>other value</test_b>
</otherprop>
<otherprop id="2">
<test_a>other other value</test_a>
<test_b>other other other value</test_b>
</otherprop>
</child>

</main>