This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "SAX Parser order of parsing" Watch "SAX Parser order of parsing" New topic
Author

SAX Parser order of parsing

Arul Prasad
Ranch Hand

Joined: Jan 20, 2005
Posts: 57
hi

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

say for example
-------------------

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

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
Rancher

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


Yes


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

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