• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help regarding xml parsing

 
sennat ms
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic