-
Java Wrappers For XML
Hi
I am trying to generate xml from java file.Then I wanted to use the genererated xml file to generate java wrapper class and format it with XSL.
For example:
interface Hello
{
void sayHello(String hello);
}
I used java2XML api to get the following output.xml:
<?xml version="1.0"?>
<java-source-program>
<java-class-file name="Hello.java">
<interface name="Hello" visibility="protected">
<method name="sayHello" visibility="protected">
<type name="void" primitive="true"/>
<formal-arguments>
<formal-argument name="hello">
<type name="String"/>
</formal-argument>
</formal-arguments>
</method>
</interface>
</java-class-file>
</java-source-program>
Now using this XML as input I want to generate a Java Wrapper and format it with XSL.For example wrap the sayHello method in the Java Wrapper with some logging etc.
Something like wsdl2java.
I tried out with xml2java and zeus,both generate a class for each element and lot of other apis.
Please let me know if someone has worked on similar stuff.
Someone tried out similar stuff with reflection?
Thanks in advance.
Regards
Raju
Similar Threads
-
Replies: 9
Last Post: 09-19-2007, 05:58 AM
-
Replies: 1
Last Post: 05-13-2005, 06:46 AM
-
By Rob Abbe in forum Talk to the Editors
Replies: 44
Last Post: 01-13-2003, 02:57 PM
-
By JJ in forum Enterprise
Replies: 1
Last Post: 07-06-2000, 04:50 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks