See below
On 10.02.2003 13:48:58 Matthew Lancashire wrote:
> I get a file not found error when I do the .transform
>
>
> javax.xml.transform.TransformerException: java.io.FileNotFoundException:
> C:\m1\Project1\< (The filename, directory name, or volume label syntax is
> incorrect)
> at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
> 686)
<snip/>
> //Setup sources
> System.out.println("Setup sources");
> Source xmlSrc = new StreamSource(new String(xml));
You can't do that. If you supply a String to StreamSource it is meant to
be a URI or filename. If you want to supply your XML as String use the
following:
Source xmlSrc = new StreamSource(new StringReader(xml));
Please consult the JavaDocs for the JAXP API.
<snip/>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]