• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

doubt regarding DOM parser

Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
Author and all-around good cowpoke
Posts: 13078
  • 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.

Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic