How to create a DOM object out of a String ?

Hi,
How to parse XML String using DOM Parser.
Like :
String str =<FTG> <man>maneesh</man><man1>Hari</man1><FTG> 

Then how to parse it using DOM parser(SUN Parser).
One possible solution is writing in a file and saving it with .xml extension and then parsing a file .
DOMParser parser = new DOMParser();    //// this is a code using IBM XML4J .
parser.parse(URI);

URI = location of file like c:\man\man.xml;

But apart from this IS There any other solution . If yes , then pl. get back to us ?

Thanks,
Hari.
________________________________________________

If confusion is the first step to knowledge, I must be a genius.

Received on Monday, 23 October 2000 09:47:53 UTC