Generating JavaBean from XML

Erica Leung <[email protected]> Thu, 13 Feb 2003 17:19:59 -0800
Newsgroups gmane.comp.java.sun.xml.general
Message-ID <[email protected]>
Hi, there

I have a XML contains a couple of <bean> elements. I want to transform it to
java bean classes using a xslt.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<beans>
<bean>
    <name>Product</name>
    <comments>This bean represents a product that the company offers to its
customers</comments>
    <property>
        <name>code</name>
        <type>int</type>
        <comments>the product inventory code</comments>
    </property>
</bean>
<bean>
    <name>Customer</name>
    <comments>This bean represents client's information</comments>
    <property>
        <name>name</name>
        <type>String</type>
        <comments>Client's name</comments>
    </property>
</bean>
</beans>

The following command can transform  the result on the screen correctly,
java org.apache.xalan.xslt.Process -in xmlSource  -xsl stylesheet

But if I want to write the result out, how can I specify the out put name
respectively for each bean.

Thanks in advance,

Erica Leung

-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.