IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes Help regarding xml parsing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Help regarding xml parsing" Watch "Help regarding xml parsing" New topic
Author

Help regarding xml parsing

sennat ms
Greenhorn

Joined: Feb 07, 2006
Posts: 4
I am working with a xml project.
I got to parse a xml which is in the form of a string using xsl.Look at the following,

transformer.transform(new SAXSource(new InputSource(new ByteArrayInputStream("<xml>test</xml>".getBytes()))), new StreamResult(out));

this is an example to tell you what I tried.The code compiled successfully but it is not able to transform or parse it using the xml.The message I got from the server is,

"No Source Parameter supplied"

Can any one tell me how to wrk with strings and parse them as I had shown u?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16622

I don't think this is the right forum for your question. I don't see a correlation between the XML and an ORM tool, so I am going to move this to the XML forum.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: Help regarding xml parsing
 
Threads others viewed
get data from Document object
What is NodeList , Node , Element in xml file
Problem in parsing xml using java
Parsing special characters in string. (ex: "--> ")
Help regarding xml parsing
IntelliJ Java IDE