?
Solved

Parsing XMLString

Posted on 2003-10-28
3
Medium Priority
?
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

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…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses
Course of the Month10 days, 12 hours left to enroll

765 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