Generate Code
Generate code and build as for the examples in the previous chapters.
1. Follow the instructions in Chapter 2, “Setup,” in the HydraExpress User Guide to set up your environment.
2. Open a command prompt and navigate to the directory:
installdir\examples\xmlbinding\complexContent\
3. Invoke the code generator, using the command shown here:
rwsfgen example-project.xml
This command generates code into a top-level code generation directory complexContentExample based on the HydraExpress project file example-project.xml to specify the file complexContent.xsd as an argument to the code generator. Alternatively, you could specify the schema and project name directly at the command prompt, as follows:
rwsfgen -projectname complexContentExample complexContent.xsd
Note: The project name is required.
For more information on the use of HydraExpress project files in shipped examples, see “The Use of the HydraExpress Project File in Shipped Examples,” in the HydraExpress User Guide.