I am conditionally changing an \[code\]XmlDocument\[/code\] in various parts of my code. Instead of passing a "changed" flag around, does the \[code\]XmlDocument\[/code\] object have something built flag for this (like \[code\]isDirty\[/code\])?\[code\]var doc = new XmlDocument();doc.Load(file);if (...) parent.AppendChild(element);if (...) parent2.AppendChild(element2);if (...) parent3.AppendChild(element3);//METHOD DOESN'T EXISTif (doc.isDirty()) doc.Save(file);\[/code\]