Help for this page

Select Code to Download


  1. or download this
      use XML::Pastor;
       
    ...
                class_prefix=>'MyApp::Data::',
                verbose = 9
                );
    
  2. or download this
      my $country = MyApp::Data::country->from_xml_file('/some/path/to/cou
    +ntry.xml');    # retrieve from a file    
      $country = MyApp::Data::country->from_xml_url('http://some/url/to/co
    +untry.xml');     # or from a URL
    ...
      my $xml=$country->to_xml_string();        # To a string  
      my $frag=$country->to_xml_fragment();        # Same thing without th
    +e <?xml version="1.0?> part