Solved

Parsing XMLString

Posted on 2003-10-28
3
150 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 125 total points
Comment Utility
Use a StreamSource with a StringReader
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
:-)
0
 

Expert Comment

by:bhojwanc1
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now