Latest News
spacer View All spacer
 
September 9, 2010
 
UK Game Industry Only 4 Percent Female, Study Claims
 
iOS 4.1 Update Provides Long-Promised Game Center Support
 
THQ*ICE Shuttered, Gravity Taking Over Dragonica Online [1]
spacer
Latest Features
spacer View All spacer
 
September 9, 2010
 
arrow From Ancient Greece To Halo: Art Tradition In Today's Games [1]
 
arrow UK vs. Canada: Do Tax Breaks Build An Industry? [7]
 
arrow Not A Departure: The Genesis Of Darkspore [4]
spacer
Latest Blogs
spacer View All     Post     RSS spacer
 
September 9, 2010
 
Courtesy, It's Wonderful!
 
Snobbish, Arrogant and Elitist - Why Attitudes to Zynga Suck [59]
 
Achievements, Social Games and Virtual Goods
 
Why 3D at Retail Sucks, and How to Fix it! [8]
 
Gamazon: The Iron Burka [15]
spacer
Latest Jobs
spacer View All     Post a Job     RSS spacer
 
September 9, 2010
 
Sony Computer Entertainment America LLC
Senior Staff Environment Artist
 
Trion Worlds
Senior Software Engineer I
 
Trion Worlds
Senior Localization Engineer
 
2K China
SENIOR SPORTS DESIGNER - 2K China
 
Sony Computer Entertainment America LLC
Senior Staff Animator
 
Trion Worlds
PR Manager
spacer
Latest Press Releases
spacer View All     RSS spacer
 
September 9, 2010
 
Worms™ 2 Armageddon launches today, 8th...
 
KONAMI REVEALS CLUBS IN PRO EVOLUTION SOCCER 2011
 
Want exotic? Raise parrots, zebras or lions on...
 
Future games stars urged to Pick the Skillset Tick
 
HUDSON ENTERTAINMENT’S FAMILY PARTY GAME...
spacer
About
spacer News Director:
Leigh Alexander
Features Director:
Christian Nutt
Senior News Editor:
Kris Graft
Advertising:
John 'Malik' Watson
Recruitment/Education:
Gina Gross
 
Feature Submissions
Sponsor
News

  Feature: 'Efficient XML File Reading for Game Development'
by Quang Hong
0 comments
Share on Twitter
Share on Facebook RSS
 
 
April 27, 2006
 
Feature: 'Efficient XML File Reading for Game Development'

In today's feature, Game programmer Christoph Luerig shows how the disadvantages of using XML in the large files commonly found in game development can be avoided by using the SAX (simple application interface for XML).

In this excerpt, he explains how XML can be used in game development and touches upon different methodologies:

"Modern game engines read a lot of data during game start up in nearly all sub-modules. The general data format XML is about to establish itself as the de facto norm in this area. One of its strength is ease of readability. Many standard tools and exporters for this format exist that make the game developer's life much easier. When using this data format in large files, however, one finds that the associated costs are higher memory consumption, longer reading times and memory fragmentation. These are especially painful in console game development.

In this article we show that these disadvantages can be avoided, not by using the standard DOM (document object model), but by using the SAX (simple application interface for XML). Both are different approaches to parsing XML data. The latter one is less known among game developers and seems to be a lot more difficult to use at first. However, we will show that, if applied properly, the amount of work that needs to be done is about the same for both approaches; only the control flow is different."


You can now read the full Gamasutra feature on the subject, including plenty of code examples (no registration required, please feel free to link to this feature from external websites).
 
   
 
Comments


none
 
Comment:
 


Submit Comment