473,804 Members | 3,163 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Decreasing size of XMLSerilaized Payload

Does anyone have any tips/hints for reducing the size of the XML produced?

I can think of a couple:

1. Use XmlAttributeAtt ribute to save space
2. Used XmlIgnore for properties that are calculated rather than reference
private fields.
Nov 14 '05 #1
1 956
On Mon, 14 Nov 2005 11:49:08 -0000, Dirc wrote:
Does anyone have any tips/hints for reducing the size of the XML produced?

I can think of a couple:

1. Use XmlAttributeAtt ribute to save space
2. Used XmlIgnore for properties that are calculated rather than reference
private fields.


XML Serialization will never be efficient as it's designed to be human
readable and self describing :/
If you want real efficiency then use a binary serializer instead. You can
save some space in the XML by choosing short tag names, but this goes
against the idea that the XML be self describing, in which case it might as
well be binary :)

Cheers,
Jason
Nov 14 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2427
by: Rob Tweed | last post by:
Is there any way of getting hold of the raw payload for the HTTP request if the verb is something other than POST (eg the PUT, LOCK etc WebDAV verbs)? I've tried setting always_populate_raw_post_data = on in my php.ini but this has no effect, and I haven't been able to find any solution in newsgroup postings on google. The problem is that if I send a POST then I see the XML content in $_HTTP_RAW_POST_DATA, but if I send a LOCK...
6
6148
by: andrew blah | last post by:
Hello, I need to get the text of the body (the payload) of an email. As I understand it, an email has headers at the top, then a blank line, then the body of the message. I want to get the text of the body - every character from the new line after the headers until the end of the message.
14
8525
by: Sameer | last post by:
Hello, i wish to read a file of int and store into an array dynamically... the size of memory allocated finally, should just be sufficeient to store n integers. I do not know the number of integers in the file... How should I go about creating the array int array dynamically ? the file is
12
16921
by: David Sworder | last post by:
Hi, I'm writing an application in which a client (C#/WinForms) and server (C#/service) interact with one another. The client establishes a "session" with the server but for scalability reasons there is not a one to one map between a session and a physical TCP connection. A client may disconnect the TCP connection if it is idle for more than 60 seconds... yet a conceptual "session" may last for days at a time. It's necessary that the...
4
1429
by: WJ | last post by:
I use POST method to send a payload of three "Name,Value" pairs to an aspx page. The 2nd pair with a value of a string type and is 700 bytes long. However, the string is truncated to 360 bytes (approx.) by the time it reaches the destination page. I thought POST would cary a higher payload. What is the maximum size of a "name,value" pair can a POST absorb ? Thanks
1
4626
by: Praveen Chandra | last post by:
Hi I was calling a third party webservice ( WSDL ) which is accepting some xml as input parameter. it works fine when the xml size is small but starts giving error when the xml size reached about 400KB. Error Description : The size of the request exceeds the limit allowed by the server. I changed the maxRequestLength in machine.config file to accept 40MB but this did not help
10
3730
by: Chris Crowther | last post by:
Hi All, Does anyone know if it's possible to grab the raw payload data from a TCP packet, using .NET (C# to be exact). I'm writing a piece of software that communicates to a networked device using a protocol encapsulated inside TCP. The structure of the protocol is such that stream semantics aren't really appropiate for communication; all the data for an encapsulated packet has to fit inside a single TCP packet. I just want to be...
2
1754
by: CFAN | last post by:
Why the disk space keep on decreasing,is that due to use popen()? I have wrote a monitor program to ensure my program on working by using popen to use 'ps' command, but the disk space keep on decreasing. And when the disk shrink to near 40K , it seems stop to decrease anymore. So Is the popen implementation needs write disk other than using meory instead?
0
1392
by: wajedali | last post by:
hi......... i have problem in incresing and decreasing the component. I have a one main panel (i.e. i used as _basewindowPanel) in that again two panel in that two panel like wise.... now when i m increasing the size of component only button and label size get increase.But Jcombobox,JTextfield and table size unchanged.Plz any one help me,here is my code for increasing the size........ public void incPanel(int size) { ...
0
9585
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10586
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.