Convert JSP to valid XML

Does anyone know a good (preferrably free) tool to convert a JSP file to valid XML format?

I've tried Tidy, but this tool can convert HTML to XML or XHTML but not JSP to XML. It will check first

if my JSP file is valid HTML, which it is not (because there are a lot of JSP tags included, which will

result in valid HTML, but which are not initially).

[385 byte] By [thomasphlips] at [2007-9-26 2:48:06]
# 1

You could use the XML syntax rather than the JSP syntax, for example, instead of using "<%" and "%>" around scriptlets, you use "<jsp:scriptlet>" and "</jsp:scriptlet>", etc. I don't imagine it would be a hugh task to convert existing JSPs to use the XML syntax, but don't know of a tool that does so.

zaneparks at 2007-6-29 10:33:09 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...