Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XMl DOm query

 
felix thomas
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I just want to know wether i can create a XML Dom object on the fly i.e. not reading from a physical XML file.
If so can anyone show me any sample codes or Links with this example.

Thanx
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at this...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the org.xml.sax.InputSource class. Anything that can be used to create an InputSource object can be parsed to create a DOM. Specifically, any byte stream or character stream.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic