ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Parsing an XML Document with XPath
Subject:   XML as String
Date:   2007-12-12 12:35:41
From:   dvohra09
Response to: XML as String

String xml="<root><catalog></catalog></root>";
InputSource inputSource = new InputSource(new StringReader(xml));