hi ,
use the following method
public Document parseString(String str)
{
//System.out.println("in parse string :: string got is "+str);
Document doc = null;
try
{
byte[] byte_array_of_string = str.getBytes();
InputStream istr = new ByteArrayInputStream(byte_array_of_string);
InputSource is = new InputSource(istr);
DOMParser dom_parser = new DOMParser();
dom_parser.parse(is);
doc = dom_parser.getDocument();
}
catch(Exception e)
{
}
return(doc);
}
Savita S <[EMAIL PROTECTED]> wrote:
Hi all,
How will I parse a xml String.
Thanks and regards
Savita.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
