File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 12868
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