Esempio n. 1
0
        protected override void ProcessDataNode(XmlDocument doc, XmlNamespaceManager namespaces)
        {
            namespaces.AddNamespace("domain", "urn:ietf:params:xml:ns:domain-1.0");

            XmlNode children = doc.SelectSingleNode("//domain:creData", namespaces);

            if (children != null)
            {
                XmlNode hostNode = children.SelectSingleNode("domain:name", namespaces);

                if (hostNode != null)
                {
                    DomainCreateResult = new DomainCreateResult {
                        DomainName = hostNode.InnerText
                    };

                    XmlNode crDateNode = children.SelectSingleNode("domain:crDate", namespaces);

                    if (crDateNode != null)
                    {
                        DomainCreateResult.CreatedDate = crDateNode.InnerText;
                    }

                    XmlNode exDateNode = children.SelectSingleNode("domain:exDate", namespaces);

                    if (exDateNode != null)
                    {
                        DomainCreateResult.ExpirationDate = exDateNode.InnerText;
                    }
                }
            }
        }
        protected override void ProcessDataNode(XmlDocument doc, XmlNamespaceManager namespaces)
        {
            namespaces.AddNamespace("domain", "urn:ietf:params:xml:ns:domain-1.0");

            var children = doc.SelectSingleNode("//domain:creData", namespaces);

            if (children != null)
            {
                var hostNode = children.SelectSingleNode("domain:name", namespaces);

                if (hostNode != null)
                {
                    DomainCreateResult = new DomainCreateResult {DomainName = hostNode.InnerText};

                    var crDateNode = children.SelectSingleNode("domain:crDate", namespaces);

                    if (crDateNode != null)
                    {
                        DomainCreateResult.CreatedDate = crDateNode.InnerText;
                    }

					var exDateNode = children.SelectSingleNode("domain:exDate", namespaces);

                    if (exDateNode != null)
                    {
                        DomainCreateResult.ExpirationDate = exDateNode.InnerText;
                    }
                }
            }
        }
		protected override void ProcessDataNode(XmlDocument doc, XmlNamespaceManager namespaces)
		{
			base.ProcessDataNode(doc, namespaces);

			namespaces.AddNamespace("domain", "urn:ietf:params:xml:ns:domain-1.0");
			var domainCreateDataNode = doc.SelectSingleNode("/ns:epp/ns:response/ns:resData/domain:creData", namespaces);

			if (domainCreateDataNode != null)
			{
				var domainRes = new DomainCreateResponse(domainCreateDataNode.OuterXml);
				DomainCreateResult = domainRes.DomainCreateResult;
			}
		}