Closed LogeswaranRamasamy closed 6 months ago
Could you have a look at the snapshot release. There were some errors in attribute namespace handling (attributes without prefix are always in the null namespace per the standard). The snapshot should have (already) fixed that.
This should now have been fixed in 0.86.3
When we try to add Namespace for an non-nullable Xml attribute it doesn't update properly. For instance, whenever I try to add namespace attribute for the below non-nullable xml Attribute, namespace is missing in the serialised xml.
Sample Xml using which XML Data classes were Defined:
Code containing Data Classes & Xml serialization Logic:
Main function:
Output XML generated:
As u can see the "istasty" attribute doesn't contain the namespace which I had denoted in my data class. But if try to give a wrong(i.e Different namespace) compared to it's element "ns:food", then the prefix "ns:istasty" is appearing fine in generated xml.
Change in Data Class:
Generated output with the correct namespace for "istasty" attribute:
Kindly can u provide fix for the same.