Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2004, 01:33 PM
Authorized User
 
Join Date: Oct 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default condensing XML

One problem with XML is that of the total size of an XML string or file, only a small proportion of it is actual data. The rest is the node and attribute names which describe the data, which are repeated constantly.

I am working on an application in which a large chunk of XML needs to be passed from one page to the next in a hidden field. I need to reduce the amount of bytes contained in this field. I'm thinking along the lines of somehow converting between XML and a delimited string. This would be easy enough if the data was in a straightforward tabular format, but its not. I need to somehow globaly define which attributes a node has, then list the data in those nodes, and nest other nodes in them.

Before embarking on this, I was wondering if anyone out there has done this before, or if there is a generic solution.

Some way of compressing and decompressing a very long string would be equally valid.

Cheers





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server 2005 XML: FOR XML PATH -> cdata? stoves SQL Server 2005 1 July 8th, 2008 02:40 AM
VB.net, adding XML data to an existing XML file saikoboarder XML 11 April 17th, 2008 04:19 PM
Condensing the Rows in VB.NET Ginab VB How-To 2 September 7th, 2007 02:32 PM
xml invalid top level from ASP write XML(solution) g000we XML 0 August 9th, 2006 03:56 AM
DTS Package, XML task. Read XML file and store it Victoria SQL Server DTS 0 July 24th, 2006 02:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.