Skip to content

Commit 0931b78

Browse files
committed
Fix Schema @Version reading name instead of version.
1 parent d66caca commit 0931b78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/libxml/ruby_xml_schema.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ VALUE rxml_wrap_schema(xmlSchemaPtr xschema)
137137
rb_iv_set(result, "@target_namespace", QNIL_OR_STRING(xschema->targetNamespace));
138138
rb_iv_set(result, "@name", QNIL_OR_STRING(xschema->name));
139139
rb_iv_set(result, "@id", QNIL_OR_STRING(xschema->id));
140-
rb_iv_set(result, "@version", QNIL_OR_STRING(xschema->name));
140+
rb_iv_set(result, "@version", QNIL_OR_STRING(xschema->version));
141141

142142
return result;
143143
}

0 commit comments

Comments
 (0)