Hi Ranchers! I am trying to call a Class mothod from a JSP page.The method takes some parameters.I dont want to use Java data type parameter e.g. addfunction(int a,int b) where a and b are Java specific data type.Instead of this i want to pass XML data type and that class mothod will also accept the XML data type so that this will not remain Java specific mothod call. So ini summary i want to know how to pass XML data type to a Java Mothod? Thanks for your time.
with regards<br />Datta.<br /> <br />To the world you might be one person, but to one person you just might be the world !
If you have an XML document parsed into a JAVA program you have a collection of Java objects which can be manipulated by standard Java techniques. For example, calling a method with a reference to a Node object - all perfectly normal Java.
See the JavaDocs for org.w3c.dom package for examples of the interfaces implemented by the Java objects making up a DOM (Document Object Model).
If you have further questions, try the XML forum.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Pass XML datatype instead of Java data type