This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes SAX.  Help please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "SAX.  Help please" Watch "SAX.  Help please" New topic
Author

SAX. Help please

Ambrose Tati
Ranch Hand

Joined: Oct 03, 2000
Posts: 55
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
 
Have you checked out Aspose?
 
subject: SAX. Help please
 
It's not a secret anymore!