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.jav a">
<interface name="Hello" visibility="pro tected">
<method name="sayHello" visibility="pro tected">
<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 some exception handling for the sayHello method in the generated wrapper.
Regards
Raju
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.jav a">
<interface name="Hello" visibility="pro tected">
<method name="sayHello" visibility="pro tected">
<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 some exception handling for the sayHello method in the generated wrapper.
Regards
Raju