John, I've created a static class for use with sephiroth's class to strip any tags you want... by default it strips <data> and <data />
DL Here: http://www.smithaaronlee.net/downloads/XMLObjectCleanser.zip look at comments for usage. there is an example as well SMITH John Grden wrote: > Yeah, i use Sephi's as well, and the data property additions drive me > crazy ;) But it works great otherwise. > > I've considered (in my next life maybe) refactoring it to not do > that. If I do, i'll send it on over > > JG > > On 2/20/06, *Aaron Smith* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > I am looking for a solution for loading an xml file. then put it > into an > object. then after editing a bunch of values in that object, put > it back > to xml. > > I did find sephiroth.it <http://sephiroth.it> XML2Object class > that allows for both way > XML<>Object. But it seems to be inconsistant. What happens is when I > load the XML and turn it into an object, then edit or add values > to it. > then pass it back to make it into an XML object again. It adds > tags that > shouldn't be there.. (<data>).. then if it were to be loaded again and > saved again. more <data> tags are added. So they like keep adding and > adding <data> tags. > > I am using this for a ZINC project. for loading and saving data. > > does anyone have a solution or has done this successfully with > sephiroth.it <http://sephiroth.it> XML2Object? if so please help!.. > > > SMITH > > _______________________________________________ > osflash mailing list > [email protected] <mailto:[email protected]> > http://osflash.org/mailman/listinfo/osflash_osflash.org > > > > > -- > John Grden - Blitz > >------------------------------------------------------------------------ > >_______________________________________________ >osflash mailing list >[email protected] >http://osflash.org/mailman/listinfo/osflash_osflash.org > > _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
