comparison Lib/IMPL/DOM/Navigator/Builder.pm @ 246:2746a8e5a6c4

Fixed regressions in DOM due previous refactorings Fixed ObjectToDOM transformation to handle a schema with mixed node types
author sergey
date Tue, 30 Oct 2012 01:17:31 +0400
parents b8c724f6de36
children 129e48bb5afb
comparison
equal deleted inserted replaced
245:7c517134c42f 246:2746a8e5a6c4
100 my $nodeSchema = $this->{$_schemaNavi}->Current; 100 my $nodeSchema = $this->{$_schemaNavi}->Current;
101 101
102 my $result = eval { $nodeSchema->inflateValue($value) }; 102 my $result = eval { $nodeSchema->inflateValue($value) };
103 if (my $e=$@) { 103 if (my $e=$@) {
104 $this->BuildErrors->Append(new IMPL::DOM::Schema::ValidationError( 104 $this->BuildErrors->Append(new IMPL::DOM::Schema::ValidationError(
105 Schema => $nodeSchema, 105 schema => $nodeSchema,
106 Node => $node, 106 node => $node,
107 Error => $e, 107 error => $e,
108 Message => $nodeSchema->messageInflateError, 108 message => $nodeSchema->messageInflateError,
109 Source => $this->{$_schemaNavi}->SourceSchemaNode 109 source => $this->{$_schemaNavi}->SourceSchemaNode
110 )); 110 ));
111 return $value; 111 return $value;
112 } else { 112 } else {
113 return $result; 113 return $result;
114 } 114 }