Skip to content

Commit

Permalink
slightly shorten XmlAttributeChangeListener code
Browse files Browse the repository at this point in the history
  • Loading branch information
maul.esel committed Apr 30, 2012
1 parent a7058e1 commit c0676e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ChameleonCoder.Core/Files/XmlAttributeChangeListener.cs
Expand Up @@ -53,15 +53,15 @@ private void RemoveOldItems(System.Collections.IList items)
{
foreach (DictionaryEntry attr in items)
{
resourceElement.RemoveAttribute(DocumentXPath.prefix + (string)attr.Key, DataFile.NamespaceUri);
resourceElement.RemoveAttribute(DocumentXPath.prefix + (string)attr.Key, NamespaceUri);
}
}

private void AddNewItems(System.Collections.IList items)
{
foreach (DictionaryEntry attr in items)
{
resourceElement.SetAttribute((string)attr.Key, DataFile.NamespaceUri, (string)attr.Value);
resourceElement.SetAttribute((string)attr.Key, NamespaceUri, (string)attr.Value);
}
}

Expand Down

0 comments on commit c0676e6

Please sign in to comment.