Mercurial > pub > Impl
view _test/temp.pl @ 241:f48a1a9f4fa2
+Added ViewResult to allow implementation of the view environment.
*TTDocuments now storing creation parameters
*TTControls automatically propagating layout and title meta to their attributes
+Added UnauthorizaedException web exception
*minor fixes
author | sergey |
---|---|
date | Thu, 18 Oct 2012 04:49:55 +0400 |
parents | edf011437be8 |
children | 8d36073411b1 |
line wrap: on
line source
#!/usr/bin/perl use strict; use XML::Compile::Schema; use XML::Compile::Util qw(pack_type pack_id); use Data::Dumper; use Time::HiRes qw(gettimeofday tv_interval); my $schema = XML::Compile::Schema->new('Resources/resources.xsd'); $schema->printIndex(); my $type = pack_type 'http://implab.org/schemas/resources', 'resources'; my $reader = $schema->compile( READER => $type, xsi_type => { pack_type('http://implab.org/schemas/resources','AbstractResult') => 'AUTO' } ); my $t = [gettimeofday]; my $obj = $reader->('Resources/sample.xml'); print "Parsing small Xml file: ",tv_interval($t,[gettimeofday]),"\n"; print Dumper( $obj );