Herez one way...

SAXBuilder builder = new SAXBuilder();
...
        String xmlString = args[0]; 
        ByteArrayInputStream bin = new
ByteArrayInputStream(xmlString.getBytes());
      Document doc = builder.build(bin);
...

Cheers,
-Madhu.      


-----Original Message-----
From: Anurag Sikchi [mailto:anurag.sikchi@;mphasis.com]
Sent: Friday, October 18, 2002 5:05 AM
To: JDJList
Subject: [jdjlist] XML Parsing of an xml message string



I need to parse an xml string received as a string message. I am using the
xerces parser. Could somebody tell me how do to this. 
The parser.parse() method in the api expects a file uri. However, I need to
pase an xml string and not a file. 

thanks,
Anurag

____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to