Hi John, On Monday 18 February 2002 13:52, you wrote: > Can someone give me an example on how to transform a > string to a xml document. String to convert is a valid > xml. > > As a way of passing parameters between two > applications i am passing xml as Strings which must be > converted to xml document to process.
Given the StringReader class you can convert your String into an InputSource. InputSource in = new InputSource(new StringReader(myString)); You can then create a new XML document by parsing the input source through a document builder. Document doc = documentBuilder.parse(in); Please note that this is not a complete example but should get you started. Kind regards, Henry --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]