1.

How Do I Construct A Document From A String?

Answer»

You use standard Java IO library calls. Wrap the String with a String READER and pass the reader to SAX BUILDER:

Document DOC = builder. BUILD (new String Reader (XML));

You use standard Java IO library calls. Wrap the String with a String Reader and pass the reader to SAX Builder:

Document doc = builder. Build (new String Reader (xml));



Discussion

No Comment Found