File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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
I agree. Here's the link:
subject: SAX. Help please
It's not a secret anymore!