use XML::Pastor; $pastor = XML::Pastor->new(); $pastor->generate( mode =>'offline', style => 'multiple', schema=>'my.xsd', class_prefix=>'MyApp::Data', destination=>'.');