diff --git a/libs/UIX.DecompXml/Decompiler.cs b/libs/UIX.DecompXml/Decompiler.cs index 744705c..d33d25a 100644 --- a/libs/UIX.DecompXml/Decompiler.cs +++ b/libs/UIX.DecompXml/Decompiler.cs @@ -448,7 +448,13 @@ public partial class Decompiler private XElement PropertyDictionaryAddOnXElement(XElement xDictionary, IrisObject value, string key) { var xDictionaryEntry = PropertyListAddOnXElement(xDictionary, value); - xDictionaryEntry.SetAttributeValue("Name", key); + + // Insert the Name attribute (make sure it's always first) + var attributes = xDictionaryEntry.Attributes().ToArray(); + xDictionaryEntry.RemoveAttributes(); + xDictionaryEntry.Add(new XAttribute("Name", key)); + xDictionaryEntry.Add(attributes); + return xDictionaryEntry; }