aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 12675
    
    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


Java Resources at www.wbrogden.com
 
jQuery in Action, 2nd edition
 
subject: doubt regarding DOM parser
 
Similar Threads
documentation fro websphere 4.0
Problem while reading from socketchannel in nio
html events to reflect on DOM and to be accessed in JAVA
Dom sample program
Help me, please!