public static CT_WebPublishObject Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_WebPublishObject ctObj = new CT_WebPublishObject(); ctObj.id = XmlHelper.ReadUInt(node.Attribute("id")); ctObj.divId = XmlHelper.ReadString(node.Attribute("divId")); ctObj.sourceObject = XmlHelper.ReadString(node.Attribute("sourceObject")); ctObj.destinationFile = XmlHelper.ReadString(node.Attribute("destinationFile")); ctObj.title = XmlHelper.ReadString(node.Attribute("title")); ctObj.autoRepublish = XmlHelper.ReadBool(node.Attribute("autoRepublish")); return(ctObj); }
public static CT_WebPublishObjects Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_WebPublishObjects ctObj = new CT_WebPublishObjects(); ctObj.count = XmlHelper.ReadUInt(node.Attribute("count")); ctObj.countSpecified = node.Attribute("count") != null; ctObj.webPublishObject = new List <CT_WebPublishObject>(); foreach (XElement childNode in node.ChildElements()) { if (childNode.Name.LocalName == "webPublishObject") { ctObj.webPublishObject.Add(CT_WebPublishObject.Parse(childNode, namespaceManager)); } } return(ctObj); }