Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SAX Parser order of parsing

 
Arul Prasad
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ..?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SAX will read the xml document forward only ..?


Yes


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

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic