Parsing XMLString

s_j_vijay
s_j_vijay used Ask the Experts™
on
How to convert  a String to XML object and parse the XML object ?
Actually I pass the XML as String parameter to another servlet but I could not convert the String to XML object in the receiving servlet since SAX,ECS,JAXP doesnt allow to parse a String object.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Commented:
Use a StreamSource with a StringReader
Top Expert 2016

Commented:
:-)
Example of How to convert the String to XML object and parse the xml object.  Actually I pass the XML as String parameter and then I want to get a value for a particular attribute.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial