ps_schemaPXB.pl - example of the data model definitions and API building script utilization for perfSONAR-PS project
run this script - perl ps_schemaPXB.pl, it will create temp directory with all modules and temp/t directory with test files, chdir to temp and run perl ./test.pl to test generated API. See DataModel.pm,SOnar_Model.pm and PingER_Model.pm> for model definitions. Please note how data model modules loaded. In order to eliminate namespace conflicts its done at the runtime.
This is the real life example and generated classes are currently utilized by perfSONAR-PS webservices.
To install XML::RelaxNG::Compact::PXB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::RelaxNG::Compact::PXB
CPAN shell
perl -MCPAN -e shell install XML::RelaxNG::Compact::PXB
For more information on module installation, please visit the detailed CPAN module installation guide.