How do I use the XML Class Generator for Java to get XML data?
XML Class Generator for Java creates Java source files from an XML DTD or XML Schema . This is useful when an application wants to send an XML message to another application based on an agreed-upon DTD/Schema or as the back end of a web form to construct and XML document. Using these classes, Java applications can construct, validate, and print XML documents that comply with the input DTD/Schema. The Class Generator works in conjunction with the Oracle XML Parser for Java v2, which parses the DTD and passes the parsed document to the class generator. To get XML data, first, get the data from the database using JDBC ResultSets. Then, instantiate objects using the classes generated by the XML Class Generator.