Oct 01

Use a StringReader for your InputSource.

DocumentBuilderFactory factory = 
InputSource source = new InputSource(
   new StringReader(xmlString))
Document document = 

written by objects \\ tags: ,

Array ( ) 2 Responses to “How do I create a DOM document from an XML String?”

  1. Shailendra Says:

    Exactly what I wanted this time!!

  2. Kleag Says:

    Very useful, indeed !

Leave a Reply

You must be logged in to post a comment.