diff --git a/lib/XMLMarshaller.js b/lib/XMLMarshaller.js index 5486f84..80d572c 100644 --- a/lib/XMLMarshaller.js +++ b/lib/XMLMarshaller.js @@ -145,7 +145,8 @@ const XMLMarshaller = class { this.xs.getAttributeSimpleType (node).stringify (v) ) - case 'extension': + case 'extension': + case 'restriction': this.appendAttributes (this.xs.getType (attributes.base), data) default: