posted 19 years ago
Hi
Is there any way to parse an InputStream directly. I mean the documentBuilder.parse() method takes filename as input. But I dont have a file. Instead I have inputStream as my input which contains xml data.
I tried to use InputSource but its not giving me the desired output. If i try the same by saving the xml data as a file and then providing this filename as input to documentBuilder.parse() method then it works fine.
So, if there is any way to read the inputStream directly and parse it then please tell me.
Thanks in advance <br />Roks