Fixed/default attributes from XSD are saved as normal attributes
When using fixed/default attributes in XSD validation, to “apply” to an xml document fixed attributes only defined in the schema but not in the real xml content it is required to call
xmlSchemaSetValidOptions(ctx, XML_SCHEMA_VAL_VC_I_CREATE);
however when later re-saving the xml to disk after some modification all the fixed attributes are saved as well…
An internal “specified” property on each attribute should be added (default and fixed attribute must have specified=false), so only the really “explicit” attributes are really saved to disk.
See also issue #284