styling XML pasted to textarea with Servlet
Added by Anonymous almost 17 years ago
Legacy ID: #4711730 Legacy Poster: John Dunning (gravyboat)
I would like to use the Saxon Servlet to transform XML data pasted into an HTML <textarea> input sent via HTTP POST; is this possible? When I try, the results return "java.io.FileNotFoundException: C:\Apache\Tomcat5.5\webapps\saxon", then the first text node of the document, followed by the XML data with the slash in the closing tags reversed ("<foo>bar<\foo>"), then "(The filename, directory name, or volume label syntax is incorrect)". TIA, John
Replies (1)
RE: styling XML pasted to textarea with Servlet - Added by Anonymous almost 17 years ago
Legacy ID: #4713543 Legacy Poster: Michael Kay (mhkay)
It's certainly possible, though it requires a bit of care because the XML inside the text area will arrive in unparsed form - you need to parse it before you can process it, typically by using saxon:parse(). You haven't said exactly what you did, but judging from the error message, you have called some interface passing the content of the text area as a parameter, when the interface actually expects a URI or filename.
Please register to reply