I want to create a XML output document from my JSP page and I am thinking about using com.sun.xml.tree.ElementNode and com.sun.xml.tree.XmlDocument classes. (methods in those are createElement, setAttribute, etc). I think J2EE contains these API. However, when I tried to compile, I was given an error like these classes/methods cannot be found.
Anyone has any idea? what is the best way to create a XML from JSP page?
thanks in advance