File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes problem parsing xml string using dom parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "problem parsing xml string using dom parser" Watch "problem parsing xml string using dom parser" New topic

problem parsing xml string using dom parser

Balamurugan Sundararajan

Joined: Jul 31, 2003
Posts: 2
i want to parse a Xml String using a Dom parser......the parse function in dom parser takes only input stream as i made the code as
InputStream inputstream = new StringBufferInputStream(XmlData) ;
InputSource inputSource = new InputSource(inputstream );
but saxexception is coming and also warning called
" in has been deprecated"
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
I have tried it but see wheether it can take StreamSource xmlSource=new StringReader(new String(inputXML)));

Spritle Software Blogs
Swarup Kumar

Joined: Aug 05, 2003
Posts: 1
StringBufferInputStream class does not convert properly character into bytes.Instead use StringReader class.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: problem parsing xml string using dom parser
It's not a secret anymore!