Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

passing XML as string to parser method.

843834May 28 2004 — edited May 28 2004
Hai All

I have got a small problem here.
I am getting an XML file as a string from Java client to my sevlet.
I need to parse the string. But SAX parser takes URI as input and not string directly. It also has an overloaded method which takes Inputsource as an input. (i.e it can take a character stream, a byte stream).
Let me know if there is a way to convert String to character stream, or a byte stream) OR any other way to parse the string directly.

Any help regarding this would be appreciated.
Thanks in advance
Pooja.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 25 2004
Added on May 28 2004
5 comments
245 views