use Geo::GML ':gml321'; my $gml = Geo::GML->new('READER', version => '3.2.1'); # see XML::Compile::Cache on how to use readers and writers my $data = $gml->reader("gml:GridCoverage")->($xmlmsg); my $xml = $gml->writer($sometype)->($doc, $perldata); # or without help of the cache, XML::Compile::Schema my $r = $gml->compile(READER => $sometype); my $data = $r->($xml); # super simple my ($type, $data) = Geo::GML->from('data.xml'); # overview (large) on all defined elements $gml->printIndex; # To discover the perl datastructures to be passed print $gml->template("gml:Surface"); # autoloaded logic to convert Geo::Point into GML $data->{...somewhere...} = $gml->GPtoGML($objects);
See SYNOPSIS in XML::Compile::Cache
Provides access to the GML definitions specified in XML. The details about GML structures can differ, and therefore you should be explicit which versions you understand and produce.
If you need the <b>most recent</b> version of GML, then you get involved with the ISO19139 standard. See CPAN module Geo::ISO19139.
When you need GML3.3 features, then please contact me
See DESCRIPTION in XML::Compile::Schema
See Distribution collection overview in XML::Compile
See Comparison in XML::Compile
See Collecting definitions in XML::Compile::Schema
See Organizing your definitions in XML::Compile::Schema
See Addressing components in XML::Compile::Schema
See Representing data-structures in XML::Compile::Schema
See simpleType in XML::Compile::Schema
See complexType/simpleContent in XML::Compile::Schema
See complexType and complexType/complexContent in XML::Compile::Schema
See Manually produced XML NODE in XML::Compile::Schema
See Occurence in XML::Compile::Schema
See Default Values in XML::Compile::Schema
See Repetative blocks in XML::Compile::Schema
See List type in XML::Compile::Schema
See Using substitutionGroup constructs in XML::Compile::Schema
See Wildcards via any and anyAttribute in XML::Compile::Schema
See ComplexType with "mixed" attribute in XML::Compile::Schema
See hexBinary and base64Binary in XML::Compile::Schema
See Schema hooks in XML::Compile::Schema
See Defining hooks in XML::Compile::Schema
See General syntax in XML::Compile::Schema
See Hooks on matching types in XML::Compile::Schema
See Hooks on extended type in XML::Compile::Schema
See Hooks on matching ids in XML::Compile::Schema
See Hooks on matching paths in XML::Compile::Schema
See Typemaps in XML::Compile::Schema
See Private variables in objects in XML::Compile::Schema
See Typemap limitations in XML::Compile::Schema
See Handling xsi:type in XML::Compile::Schema
See Key rewrite in XML::Compile::Schema
See key_rewrite via table in XML::Compile::Schema
See Rewrite via function in XML::Compile::Schema
See key_rewrite when localNames collide in XML::Compile::Schema
See Rewrite for convenience in XML::Compile::Schema