W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2000

How to create a DOM object out of a String ?

From: Harikrishnan R Kurup <harikrishnan.kurup@wipro.com>
Date: Mon, 23 Oct 2000 19:09:57 +0530
Message-ID: <002901c03cf6$bc0f13e0$af01a4a4@wipsys.soft.net>
To: <www-dom@w3.org>
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 .

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 ?


If confusion is the first step to knowledge, I must be a genius.
Received on Monday, 23 October 2000 09:47:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC