コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }