aspose file tools
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 Groovy Fundamentals video training course this week in the Groovy 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: 12955
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SAX Parser order of parsing