I just want to download the source as a string. Then stick that XML (which is currently a string) into a parser.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using a SAX parser implies you have an org.xml.sax.ContentHandler that can accept callbacks from your parser. I wonder what that ContentHandler is and what use you intend to make of the callbacks.
You can wrap a StringReader around your string and pass it to a null transform that translates between a StreamSource and a SAXResult like so:
Ari.