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 doubt regarding DOM parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "doubt regarding DOM parser" Watch "doubt regarding DOM parser" New topic

doubt regarding DOM parser

Ashok George
Ranch Hand

Joined: Mar 25, 2005
Posts: 87
I recently coded a client server program where I use a dummy server and it is not a multi threaded server.It executes perfectly with simple lines of code or even the html files.but now i have been asked to modify the client program in such a way that it sends out an xml file to the server and by default when this comes back the program should parse it effectively using the DOM parser.I am new to the concept of DOM.but i tried it.But the DataInputStream object is showing null and so not able to parse.Could you please help me out on this.?If possible could yousend me a client server program that does the above function.Thank you!
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Sun has this tutorial on DOM methods that includes lots of example code.

Note that you should be reading XML as a character stream - probably with a Reader of some sort, not a DataInputStream.

I agree. Here's the link:
subject: doubt regarding DOM parser
It's not a secret anymore!