I'm really sorry to be so vague while asking my question.
Actually we have an old application developed in jsp.
There is another application developed in
JSF which renders pages at run time.
For this the layout of the page is stored in an XML file.
The problem is, the layout in the old jsp pages now needs to be written in xml so that the new application can parse that XML and render the page.
we have an xsd for the xml files which need to be generated.
For example if in the old jsp page if there was a text field
<input type ="text" name="startDate" value=""/>
the equivalent tab in XML should be like:
<Field label="Start Date (mm/dd/yyyy)" name="startDate" position="3" type="inputText" value="" />
Definitely looking at each JSP and constructing XML by hand will be one option. But I was thinking is there a way of generating the XML automatically based on the JSP.