• XML in JS

    From MCMLXXIX@VERT/MDJ to Digital Man on Fri Aug 6 14:57:39 2010
    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)ã
  • From Digital Man@VERT to MCMLXXIX on Mon Aug 9 15:44:09 2010
    Re: XML in JSã By: MCMLXXIX to Digital Man on 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.ããAre you using the built-in XML support (E4X) in JavaScript (ECMAScript)?ããWithout seeing the code, it's hard to diagnose the cause.ãã digital manããSnapple "Real Fact" #80:ãAbout 18% of Animal owners share their bed with their pet.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From MCMLXXIX@VERT/MDJ to Digital Man on Mon Aug 9 21:55:48 2010
    Re: XML in JSã By: Digital Man to MCMLXXIX on Mon Aug 09 2010 15:44:09ãã > Re: XML in JSã > By: MCMLXXIX to Digital Man on 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ã > > can narrow it down, but the end result is that a huge amount of commas anã > > 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 messã > ã > Are you using the built-in XML support (E4X) in JavaScript (ECMAScript)?ã > ã > Without seeing the code, it's hard to diagnose the cause.ã > ã > digital manã >ãããyes built in. I'm still not sure what exactly is doing it, so I'll have to messãaround with it more, but I've had some crashes as a result of bad XML syntax asãwell (not failure to compile, but jsexec crashes)ããthough the above still has yet to corrupt anything, its just a nuisanceãã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã