public static CT_FldChar Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_FldChar ctObj = new CT_FldChar(); if (node.Attributes["w:fldCharType"] != null) ctObj.fldCharType = (ST_FldCharType)Enum.Parse(typeof(ST_FldCharType), node.Attributes["w:fldCharType"].Value); if (node.Attributes["w:fldLock"] != null) ctObj.fldLock = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:fldLock"].Value); if (node.Attributes["w:dirty"] != null) ctObj.dirty = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:dirty"].Value); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "ffData") { ctObj.ffDataField = CT_FFData.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "fldData") { ctObj.fldDataField = CT_Text.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "numberingChange") { ctObj.numberingChangeField = CT_TrackChangeNumbering.Parse(childNode, namespaceManager); } } return ctObj; }
public static CT_FldChar Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_FldChar ctObj = new CT_FldChar(); if (node.Attributes["w:fldCharType"] != null) { ctObj.fldCharType = (ST_FldCharType)Enum.Parse(typeof(ST_FldCharType), node.Attributes["w:fldCharType"].Value); } if (node.Attributes["w:fldLock"] != null) { ctObj.fldLock = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:fldLock"].Value); } if (node.Attributes["w:dirty"] != null) { ctObj.dirty = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:dirty"].Value); } return(ctObj); }
public static CT_FldChar Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_FldChar ctObj = new CT_FldChar(); if (node.Attributes["w:fldCharType"] != null) ctObj.fldCharType = (ST_FldCharType)Enum.Parse(typeof(ST_FldCharType), node.Attributes["w:fldCharType"].Value); if (node.Attributes["w:fldLock"] != null) ctObj.fldLock = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:fldLock"].Value); if (node.Attributes["w:dirty"] != null) ctObj.dirty = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:dirty"].Value); return ctObj; }