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 DOMSource Vs Stream Source Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "DOMSource Vs Stream Source" Watch "DOMSource Vs Stream Source" New topic

DOMSource Vs Stream Source

mohamed zafer
Ranch Hand

Joined: Nov 03, 2000
Posts: 62
I am trying to create a html file using XML and XSL, following are the steps I do.

1. Parse and create a document object say D1, from the XML.
3. Create a Transformer with the XSL.
2. get a Child Node say CN, from the D1,
4. Invoke transform with the DOMSource created using the node CN.

The output I get is some unexpected xml. In the above steps ifI convert the node CN to a string and use streamsource instead of DOMSource, then I get the expected html output.

Any idea about this wierd behaviour

pradeep jaladi
Ranch Hand

Joined: Nov 21, 2004
Posts: 65
Hi ,

Go Through this Links. you can get the idea of

DOMSource, StreamSource, SAXSource

Relpy to this thread follows.

Another one .

I agree. Here's the link:
subject: DOMSource Vs Stream Source
It's not a secret anymore!