Create Perl classes with XML bindings by utilizing a W3C XSD Schema.
One method used to generate the output is by creating multiple modules for each class and placing them under a single destination. This is achieved by calling the 'generate' function with parameters such as mode - offline, style - multiple, schema - the path to the XSD schema, class_prefix - a prefix for the class names, and destination - the path to the destination folder.
Another method involves creating a single module that incorporates all the classes and placing it under the same destination folder. This is accomplished using similar parameters as the first method, but with the 'style' parameter set to 'single', and the 'module' parameter that defines the name of the module.
A third method is generating classes in MEMORY and doing a RUN TIME code generation by using the 'eval' mode. This requires providing the schema path, class prefix, and using the 'generate' function. Additionally, this method configures the module to output maximum DEBUG information to STDERR by setting the verbose parameter to 9.
Overall, XML::Pastor is an excellent module that can easily generate Perl classes with XML bindings by using a W3C XSD Schema. It offers multiple ways to generate output, making it easy to tailor the output to your specific needs.
Version 1.03: N/A