Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SAX Parser order of parsing  RSS feed

 
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 ..?
 
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
 
Water! People swim in water! Even tiny ads swim in water:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!