public static CT_GraphicalObjectData Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_GraphicalObjectData ctObj = new CT_GraphicalObjectData(); ctObj.uri = XmlHelper.ReadString(node.Attribute("uri")); ctObj.Any = new List <string>(); foreach (XElement childNode in node.ChildElements()) { ctObj.Any.Add(childNode.OuterXml()); } return(ctObj); }
public static CT_GraphicalObject Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_GraphicalObject ctObj = new CT_GraphicalObject(); foreach (XElement childNode in node.ChildElements()) { if (childNode.Name.LocalName == "graphicData") { ctObj.graphicData = CT_GraphicalObjectData.Parse(childNode, namespaceManager); } } return(ctObj); }