internal static XmlNode SaveRssElementAsXml(XmlNode parentNode, RssElementBase element, string elementName) { XmlDocument doc = parentNode.OwnerDocument; XmlNode node = doc.CreateElement(elementName); parentNode.AppendChild(node); foreach (KeyValuePair <string, string> attr in element.Attributes) { XmlNode attrNode = doc.CreateElement(attr.Key); attrNode.InnerText = ResolveAppRelativeLinkToUrl(attr.Value); node.AppendChild(attrNode); } return(node); }
internal static XmlNode SaveRssElementAsXml(XmlNode parentNode, RssElementBase element, string elementName) { XmlDocument doc = parentNode.OwnerDocument; XmlNode node = doc.CreateElement(elementName); parentNode.AppendChild(node); foreach (KeyValuePair<string, string> attr in element.Attributes) { XmlNode attrNode = doc.CreateElement(attr.Key); attrNode.InnerText = ResolveAppRelativeLinkToUrl(attr.Value); node.AppendChild(attrNode); } return node; }