comparison Lib/IMPL/DOM/Schema/ComplexNode.pm @ 8:fffb153be599

DOM Schema
author Sergey
date Tue, 25 Aug 2009 17:36:37 +0400
parents 94d47b388442
children 5899df8c289e
comparison
equal deleted inserted replaced
7:94d47b388442 8:fffb153be599
31 return $schemaType->Validate($node); 31 return $schemaType->Validate($node);
32 } else { 32 } else {
33 my @errors; 33 my @errors;
34 push @errors, $_->Validate foreach @{$this->childNodes}; 34 push @errors, $_->Validate foreach @{$this->childNodes};
35 35
36 if (@errors and $this->Message) { 36 return @errors;
37 return {
38 Error => 1,
39 Message => $this->formatMessage($node),
40 InnerErrors => \@errors
41 };
42 } else {
43 return @errors;
44 }
45 } 37 }
46 } 38 }
47 39
48 1; 40 1;
49 41