Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes XML and Related Technologies and the fly likes XMl DOm query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XMl DOm query" Watch "XMl DOm query" New topic

XMl DOm query

felix thomas
Ranch Hand

Joined: Jun 10, 2001
Posts: 89
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.

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Take a look at this...

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12913
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.
I agree. Here's the link:
subject: XMl DOm query