comparison Lib/IMPL/DOM/Schema/Node.pm @ 37:c2e7f7c96bcd

performance improvements, DOM reworked (a little)
author Sergey
date Mon, 23 Nov 2009 00:59:06 +0300
parents 7f00786f8210
children 16ada169ca75
comparison
equal deleted inserted replaced
36:1828103371d0 37:c2e7f7c96bcd
28 } 28 }
29 29
30 sub Validate { 30 sub Validate {
31 my ($this,$node) = @_; 31 my ($this,$node) = @_;
32 32
33 if (my $schemaType = $this->{$type} ? $this->rootNode->resolveType($this->{$type}) : undef ) { 33 if (my $schemaType = $this->{$type} ? $this->document->resolveType($this->{$type}) : undef ) {
34 return $schemaType->Validate($node); 34 return $schemaType->Validate($node);
35 } else { 35 } else {
36 return (); 36 return ();
37 } 37 }
38 } 38 }