File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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

Thanks
Zafer
pradeep jaladi
Ranch Hand

Joined: Nov 21, 2004
Posts: 65
Hi ,

Go Through this Links. you can get the idea of

DOMSource, StreamSource, SAXSource

[EMAIL]http://www.xalan-xsl.com/msg/2296.html[/EMAIL]
Relpy to this thread follows.

Another one .
[EMAIL]http://www.stylusstudio.com/xsllist/200311/post20010.html[/EMAIL]


Pradeep.Jaladi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DOMSource Vs Stream Source