File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

doubt regarding DOM parser

Ashok George
Ranch Hand

Joined: Mar 25, 2005
Posts: 87
Hi!
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
Rancher

Joined: Mar 22, 2000
Posts: 12785
    
    5
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.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doubt regarding DOM parser