Adds better compatibility for the legacy data layer and the ToXMl method - using our new xml converter.

This commit is contained in:
Shannon
2013-10-08 11:22:08 +11:00
parent 6f2a7180d8
commit d102db795e
3 changed files with 39 additions and 3 deletions

View File

@@ -288,5 +288,14 @@ namespace Umbraco.Core
return xmlDoc.DocumentElement;
}
}
public static XmlNode GetXmlNode(this XNode element, XmlDocument xmlDoc)
{
using (XmlReader xmlReader = element.CreateReader())
{
xmlDoc.Load(xmlReader);
return xmlDoc.DocumentElement;
}
}
}
}