• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to stream xml document to inputSource?

 
Pete Neu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

in my webapp I want to stream an generated xml document to an instance of org.xml.sax.InputSource in order to process it further with an xslt file in an XSLT Transformation. My question: how do I generate the xml file to an stream?

The code looks like this:




-Pete
[ December 06, 2005: Message edited by: Pete Neu ]
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what form is this document in? If it's a file, then there's a StreamSource constructor that takes a file. That's what you want.

Is that what you were asking?
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want to feed the output of one transformation into the input of a second transformation? I think you might find that in ERH's book:

http://www.cafeconleche.org/books/xmljava/chapters/index.html

Probably chapter 8 but I'm not sure.
 
Pete Neu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

yes that's the case the input comes from a relational database and is transformed to xml and the result of the transformation is the input of the xslt transformation.

I looked up the reference above. But what do I exactly look for to do the job?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic