I would like to use 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.
I see that if I call
on the context before the validation I correctly get the fixed/default attributes on the xml DOM, but when I re-save the xml to disk after some modification all the fixed attributes are saved as well…
I am porting an existing Win32 application from MSXML, in that case there is a “specified” property on each attribute (default and fixed attribute have specified=false), and only the really “explicit” attributes are really saved to disk.
It is possible to have this behaviour is some way? Is it by design or a bug?
Thanks!