Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SAX Parser order of parsing  RSS feed

 
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: 13078
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!