File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android 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: 12982
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
It's not a secret anymore!