XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 2nd, 2004, 06:01 AM
1ei1a 1ei1a is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 32 1ei1a User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 13 sec
Reputation Power: 5
Large XML documents

folks,

silly question -

Is it better to have one large xml file with multiple entries (nodes) for all my news articles

OR

should I have mutliple XML files, each containing ONE news article? In this senario, each XML file will have the same construction, but the advantage will be that it will not get as big.

I am worried about my XML file becoming unmanageably big if I keep everything in one file.

Also are there any speed considerations?

Thanks
Leila

Reply With Quote
  #2  
Old August 2nd, 2004, 08:56 AM
tstolber tstolber is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: UK
Posts: 172 tstolber User rank is Private First Class (20 - 50 Reputation Level)tstolber User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 16 h 15 m 56 sec
Reputation Power: 6
Large XML file

Hi ya

This realy depends on the application. From the sounds of it if you are going to have a huge XML file after a while. Any text parsing of large files is slow even with an ID for an event driven program to read. As when someone reads a news article they will have to make a file request anyway I think it is probably best to use one XML file for each article.

I am developing a profile system that uses MySql to verify users with passwords etc but then has an ID that is the file name of the XML file for all the profile data. This way I can have a huge members database with very little server resoucre. The benefit of this is that with Data Islands all the Profile data is on the clients PC and no further server side processing is required!

Hope this helps

Trev

Reply With Quote
  #3  
Old August 2nd, 2004, 10:55 AM
1ei1a 1ei1a is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 32 1ei1a User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 13 sec
Reputation Power: 5
Thumbs up

Quote:
Originally Posted by tstolber
Hi ya

This realy depends on the application. From the sounds of it if you are going to have a huge XML file after a while. Any text parsing of large files is slow even with an ID for an event driven program to read. As when someone reads a news article they will have to make a file request anyway I think it is probably best to use one XML file for each article.

I am developing a profile system that uses MySql to verify users with passwords etc but then has an ID that is the file name of the XML file for all the profile data. This way I can have a huge members database with very little server resoucre. The benefit of this is that with Data Islands all the Profile data is on the clients PC and no further server side processing is required!

Hope this helps

Trev


Trev,

Many thanks for your answer. Yes my xml document is expected to grow quite large (albeit not very quickly). The other consideration is that I cannot use server side processing as our customer will not allow any custom code on their servers. So I must do everything client side. This means that whenever I want to display a single news article, I must download the entire XML document to the client, and then pass the primarykey of the news article to be displayed to the xslt file, and do the transformation client side. Could get very slow.

Great pity, since I just found a great way to pass primary keys into the XSLT.

Thanks anyway!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Large XML documents


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT