Oh, BTW, for JS compression, there are plenty out there, but I recommend you use the YUI Compressor, it's a jar file you can get from the yahoo dev center.
-- nathan strutz http://www.dopefly.com/ On 10/3/07, Nathan Strutz <[EMAIL PROTECTED]> wrote: > > I'm not sure it's that easy. > > First, you can remove whitespace between tags, but what if the white space > is part of the application, as if you're expecting a " " space character or > line break. It's possible. > > Second, you need to watch carefully for real content and especially things > in CDATA type blocks, which can contain some SGML/XML that you may not want > to reformat. > > That said, something like this could start you off: > > reReplace(xmlStr, ">\s*<", "><", "ALL") <--- removes all whitespace > between tags > reReplace(xmlStr, "\s{2,}", " ", "ALL") <--- replaces 2+ whitespace chars > with just one > > And again, be careful and know what your application is doing, run some > tests on this, etc. > > > -- > nathan strutz > http://www.dopefly.com/ > > > > On 10/3/07, jonese <[EMAIL PROTECTED]> wrote: > > > > No we want to remove line breaks, carriage returns spaces etc. and then > > save > > it in our DB as a text data. > > > > we've got some rudimentary code now but i just was looking to see if > > anyone > > had something like the JS / HTML Compress scripts out there for XML. > > > > jonese > > > > On 10/3/07, Dave Watts <[EMAIL PROTECTED]> wrote: > > > > > > > Anyone know of any good XML compressions scripts? We need to > > > > take some XML which is formatted for readability and shrink > > > > it so it's more compact in our DB. We've got a hack in place > > > > but it causes issues every once in a while and i'm looking > > > > for something a bit more robust and tested. > > > > > > zip/gzip/etc? There's nothing specific about XML really, when it comes > > to > > > compression. > > > > > > Dave Watts, CTO, Fig Leaf Software > > > http://www.figleaf.com/ > > > > > > Fig Leaf Software provides the highest caliber vendor-authorized > > > instruction at our training centers in Washington DC, Atlanta, > > > Chicago, Baltimore, Northern Virginia, or on-site at your location. > > > Visit http://training.figleaf.com/ for more information! > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290114 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

