Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SAX. Help please

 
Ambrose Tati
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dea all,
I've written a basic code using SAX. I've overloaded the startElement() function. Using this function I can traverse all elements in my XML document. My question is: how do I extract the actual text of the elements?
Say, if I have <To> Ambrose </To>, how do I get the text "Ambrose"?
Thanks in advance
Ambrose
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic