Click here to Skip to main content
13,633,642 members
Click here to Skip to main content
Add your own
alternative version


13 bookmarked
Posted 10 Aug 2002

XML Reading Using DOM and SAX

, 10 Aug 2002
Rate this:
Please Sign up or sign in to vote.
Example of reading XML using two interfaces DOM and SAX
There are two simple methods in my application: one is reading xml file by using DOM method and the other is reading the same file using SAX method. I’m not gonna explain the difference between DOM & SAX, only telling this that in DOM , a parser must read the whole file u r reading before u can read anything. In other words the file is loaded into the memory of your application, where DOM makes an object model of it, then u can traverse throw the elements of this object model & receive/update needed information. SAX method, reads file step by step, so it is a resource benefit . Of course there can be said a lot about that but if u r interested I’m sure u’ll find more complex info. I made this example when I was studying XML and its two models/interfaces for making parsers – DOM & SAX and it was interesting for me to use them throw NET. <!-- Download Links -->


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
Bulgaria Bulgaria
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralMy vote of 1 Pin
Barry Lapthorn21-Feb-10 21:37
protectorBarry Lapthorn21-Feb-10 21:37 
GeneralMy vote of 1 Pin
xandervdm14-Sep-09 0:36
memberxandervdm14-Sep-09 0:36 
General[Message Removed] Pin
hankjmatt13-Oct-08 22:18
memberhankjmatt13-Oct-08 22:18 
GeneralI got what I was looking for Pin
Ashutosh Bhawasinka6-Dec-06 10:30
memberAshutosh Bhawasinka6-Dec-06 10:30 
Questionwhere is SAX? Pin
theGrim11-Oct-06 6:25
membertheGrim11-Oct-06 6:25 
Anonymous14-Dec-04 23:16
sussAnonymous14-Dec-04 23:16 
GeneralArticle sucks Pin
Anonymous17-Oct-03 4:52
sussAnonymous17-Oct-03 4:52 
GeneralRe: Article sucks Pin
dog_spawn17-Oct-03 5:02
memberdog_spawn17-Oct-03 5:02 
GeneralPoor Article Pin
Paul A. Howes12-Aug-02 2:35
memberPaul A. Howes12-Aug-02 2:35 
GeneralRe: Poor Article Pin
Bubba214612-Aug-02 4:26
memberBubba214612-Aug-02 4:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01-2016 | 2.8.180712.1 | Last Updated 11 Aug 2002
Article Copyright 2002 by rosen
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid