• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps XML Transformations via XSLT on the fly ONLY ( no source file, just Strings in utility class)

Hello.
I wonder if it is possible to transform XML-datastreams on the fly without offering a .XSLT-processor-file.

Imagine, i have a utility class, which has some Sting members, and those are some special XSLT-Processor Strings.

Each time I get a DataStream as a response to a HTTP request, I would like to parse this to a well formed XML, then search for some particular words in the stream, and depending on which of the phrases is found, I then would load the appropriate xslt-string into an Source and apply transformation.

My question is simply: Is that possible ? The object-documentation for Source says, InputStream as also usable as "Source". So usually this should work.

Does anybody know some results ?
 
I was able to answer this question by myself, and I must say: Yes it is possible. That helps me to deliver dummy files in raw-folder and is exactly what I needed.
 
Back
Top Bottom