Article:
  Parsing an XML Document with XPath
Subject:   XML as String
Date:   2007-12-12 12:22:22
From:   Schuenemann
What can I do if I have not an InputStream or a File, but a String holding the content of the XML? How to create the InputSource?
Full Threads Newest First

Showing messages 1 through 1 of 1.

  • XML as String
    2007-12-12 12:35:41  Deepak Vohra | [View]

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