This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
 
subject: SAX. Help please
 
Similar Threads
which parser to use
SAX praser passing element's attribute value dynamically
Eric, come in please
Code sample request
cloning labels