Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt regarding DOM parser

 
Ashok George
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic