diff 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
line wrap: on
line diff
--- a/Lib/IMPL/DOM/Schema/Node.pm	Fri Nov 20 16:48:08 2009 +0300
+++ b/Lib/IMPL/DOM/Schema/Node.pm	Mon Nov 23 00:59:06 2009 +0300
@@ -30,7 +30,7 @@
 sub Validate {
     my ($this,$node) = @_;
     
-    if (my $schemaType = $this->{$type} ? $this->rootNode->resolveType($this->{$type}) : undef ) {
+    if (my $schemaType = $this->{$type} ? $this->document->resolveType($this->{$type}) : undef ) {
         return $schemaType->Validate($node);
     } else {
         return ();