473,387 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

scalable xml

Hi, I am writing the application server for a three-tier architecture
and sending the client's response in xml. My question is: is there a way
to build the xml dom in a more scalable way and faster way than just
creating every textNode and element for it? I have tons of data to
transmit and it drives me crazy having to build that dom manually.

I am not sure if this is a stupid question as I don't know other
alternatives ... maybe just provide a template xml which I can fill with
data but that can introduce some pretty ugly bugs in the application.
Thanks.

Jun 27 '08 #1
1 1075
hyperboreean wrote:
Hi, I am writing the application server for a three-tier architecture
and sending the client's response in xml. My question is: is there a way
to build the xml dom in a more scalable way and faster way than just
creating every textNode and element for it? I have tons of data to
transmit and it drives me crazy having to build that dom manually.

I am not sure if this is a stupid question as I don't know other
alternatives ... maybe just provide a template xml which I can fill with
data but that can introduce some pretty ugly bugs in the application.
You should have a look at the ElementTree-package (which also comes
api-compatible as lxml). These allow for a much more pythonic way of
creating XML-trees.

However you might consider using a much more concise format such as json for
transport (if you have control over the client). It reduces the data-amount
to about a tenth or so (of course depending on your xml-dialect), with
considerable gains in processing time.

And then there in fact are some template languages such as KID and genshi
that might suit you because they enforce proper XML.

Diez
Jun 27 '08 #2

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

Similar topics

5
by: Robert J. O'Hara | last post by:
For some time I've struggled with the problem of displaying simple captioned figures on webpages in a way that is robust and scalable. I tend to make "boring" (um, I mean "conservatively elegant")...
9
by: dp | last post by:
I'm playing with scalable background images in html 4.01 transitional . The image scales ok in the viewport but I can't get it to scale beyond the viewport when there's long content that forces...
4
by: Dean J Garrett | last post by:
Hello, We're beginning to build a new .NET application that must be very scalable, i.e. to address future load requirements, we'd like to be able to simply add additional web servers. How do you...
1
by: Dean J Garrett | last post by:
We need to determine the proper architecture for a new .NET application which must be scalable, i.e. we must be able to add additional web servers as the need arises in order to accommodate...
1
by: .:: - Hades - ::. | last post by:
Hi, 1. I am trying to find out something close to the Overlapped IO / Completion Ports model provided to me by the Winsock 2 library in C#. The two ways provided to me to move towarsds...
4
by: SRLoka | last post by:
After reading the newsgroups and various .Net web sites, I have come to a conclusion that BeginReceive and BeginSend are the way to go as they use IOCompletion Ports(I have no clue what they mean...
0
by: Jonas Hei | last post by:
I need to develop a scalable server which has to receive and send UDP messages. It is required to process hundreds of messages (coming from different remote computers) per second (possibly even...
1
by: John Grandy | last post by:
Could someone point me in the direction of good discussions on scalable state management solutions? Specifically, pros and cons of following strategies: Strategy 1 : temporary business-objects...
3
by: Brent Borovan | last post by:
Hello, Our team is about to begin development of a web based product using ASP.NET 2.0. We want to ensure that our architecture is scalable (n-tier) and easy to maintain. I've read up on the...
1
by: PeteOlcott | last post by:
Does anyone know how to make a scalable image on a DialogBox? I am currently using a static Picture Control, can this be adapted to become scalable to the size of the DialogBox?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...

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.