?
Solved

Parsing XMLString

Posted on 2003-10-28
3
Medium Priority
?
174 Views
Last Modified: 2013-11-23
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.
0
Comment
Question by:s_j_vijay
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 375 total points
ID: 9632846
Use a StreamSource with a StringReader
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9633129
:-)
0
 

Expert Comment

by:bhojwanc1
ID: 11025946
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.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question