Indeed, as <[EMAIL PROTECTED]> mentioned, that's the major part of why TrAX (or the javax.xml.transform.* packages) has the generic Source and Result objects - and the various StreamSource, DOMSource, etc. subclasses.
StreamSources, like StreamResults, can take a number of constructor arguments, including URI, File, Stream or Writer. See http://xml.apache.org/xalan-j/apidocs/index.html The transformer doesn't care (well, not much), which is the beauty of the system - you provide whatever's most convenient for you, and we'll dump output there (or suck in input). Just remember that the TrAX interfaces all expect String args that refer to resources to be URIs, *not* local filesystem paths. Thus this is *incorrect*: new StreamSource("c:\foo\bar.txt"); This is the correct URI for that local path: new StreamSource("file:///c:/foo/bar.txt"); - Shane ===== <eof aka="mailto:[EMAIL PROTECTED]" quote="A mirror is like a window on the other side of behind you."/> __________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com
