This content has been marked as final. Show 4 replies
Create a servlet to parse XML.
JSP is a templating system. It doesn't make sense to use it to parse something.
Your question is vague. Are you asking how to parse XML in general? If so, the application type (JSP, etc.) is irrelevant. You simply submit the XML string to a parser (Xerces, etc.).
Or, are you asking how to read an XML string from a file? Or something else?
If you have a long xml take a look at JAXB. Otherwise your question is far too vague, as others have mentioned.