By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,154 Members | 1,031 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,154 IT Pros & Developers. It's quick & easy.

Passing a string into Xerces' SAX?

P: n/a

I want to implement the Xerces SAX parser and simply pass in a string
to validate the XML against the DTD... but the only inputs to the SAX
parser are file and inputstream. Any hints?

Mar 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
sl***************@yahoo.com wrote:
I want to implement the Xerces SAX parser and simply pass in a string
to validate the XML against the DTD... but the only inputs to the SAX
parser are file and inputstream. Any hints?


Create a ByteArrayInputStream from String.getBytes(charsetName).
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Mar 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.