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.
| You must Sign In to use this message board. |
|
| | Msgs 1 to 8 of 8 (Total in Forum: 8) (Refresh) | FirstPrevNext |
|
 |
|
|
 |
|
 |
though your article is very short...I got what I wanted.... moreover I can't read big articles.....
thanks for keeping it short...
Ashutosh
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
 |
You should say it in the open rather than anonymously. I will give you an example:
This article is not very good.
|
| Sign In·View Thread·PermaLink | 2.67/5 (3 votes) |
|
|
|
 |
|
 |
Rosen,
No offense, but you really need to make the article more complete. First off, reading abbreviations, such as "u r" instead of "you are" is painful. Leave those in the chat rooms where they belong. Second, talk a little more about your experiences: What problems did you run in to while developing this code? Why were you working on this at all? What are some of the differences between processing a file with SAX versus the DOM?
If you can make these changes, then I will be more than happy to vote for your article.
-- Paul
"I drank... WHAT?"
|
| Sign In·View Thread·PermaLink | 5.00/5 (2 votes) |
|
|
|
 |
|
 |
I totally agree. It's not enough to post code and think you're done. The point is to create an *article*, which should never be a single paragraph. I was really disappointed after I clicked the link to this page.
|
| Sign In·View Thread·PermaLink | 2.75/5 (3 votes) |
|
|
|
 |
|
|
General
News
Question
Answer
Joke
Rant
Admin