Subj : XML in JS
To   : Digital Man
From : MCMLXXIX
Date : Fri Aug 06 2010 02:57 pm

I've been messing around with some XML data files and manipulating them within
a script, then writing them back out.

Somewhere in this process (either deleting an item or adding one) some weird
stuff is happening, and I'm not sure if it's something I should be doing
differently or if it's just the way it is.

I'll post an example of exactly what im doing and what the result is when I can
narrow it down, but the end result is that a huge amount of commas and spaces
are getting thrown into the XML object, leaving the file looking something like
this:

<blahblah>
,   ,   ,   ,,,,,,,
   <blah>
,   ,   ,   ,,,,,,,
   </blah>
,   ,   ,   ,,,,,,,
</blahblah>

it doesnt seem to corrupt the data, but after reading it back in, doing some
work, and writing it back out a few dozen times, it gets really messy.


---
� Synchronet � The BRoKEN BuBBLE (MDJ.ATH.CX)