my dog learned polymorphism*
The moose likes XML and Related Technologies and the fly likes SAX Parser order of parsing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "SAX Parser order of parsing" Watch "SAX Parser order of parsing" New topic

SAX Parser order of parsing

Arul Prasad
Ranch Hand

Joined: Jan 20, 2005
Posts: 57

I need one clarification of Sax parser in order of parsing the xml documnet

say for example

<Attribute Name="Name" Desc ="name" />
<Attribute Name="Amount" Desc="amount" />

whenever i parse the xml i need the first element as "Name" and the second one as "Amount"

SAX will read the xml document forward only ..?

With Regards<br />Arul
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
SAX will read the xml document forward only ..?


It is up to you, the programmer, to save data you may need later.

I agree. Here's the link:
subject: SAX Parser order of parsing
Similar Threads
SAX parsing question
simple SAX parsing questions
Why namespace information is not in attributes list
Different behaviours plz help!!
how to construct attribute list