Microsoft.Xades.SignatureProductionPlace.LoadXml C# (CSharp) Метод

LoadXml() публичный Метод

Load state from an XML element
public LoadXml ( System xmlElement ) : void
xmlElement System XML element containing new state
Результат void
		public void LoadXml(System.Xml.XmlElement xmlElement)
		{
			XmlNamespaceManager xmlNamespaceManager;
			XmlNodeList xmlNodeList;
			
			if (xmlElement == null)
			{
				throw new ArgumentNullException("xmlElement");
			}

			xmlNamespaceManager = new XmlNamespaceManager(xmlElement.OwnerDocument.NameTable);
			xmlNamespaceManager.AddNamespace("xsd", XadesSignedXml.XadesNamespaceUri);

			xmlNodeList = xmlElement.SelectNodes("xsd:City", xmlNamespaceManager);
			if (xmlNodeList.Count != 0)
			{
				this.city = xmlNodeList.Item(0).InnerText;
			}

			xmlNodeList = xmlElement.SelectNodes("xsd:PostalCode", xmlNamespaceManager);
			if (xmlNodeList.Count != 0)
			{
				this.postalCode = xmlNodeList.Item(0).InnerText;
			}

			xmlNodeList = xmlElement.SelectNodes("xsd:StateOrProvince", xmlNamespaceManager);
			if (xmlNodeList.Count != 0)
			{
				this.stateOrProvince = xmlNodeList.Item(0).InnerText;
			}

			xmlNodeList = xmlElement.SelectNodes("xsd:CountryName", xmlNamespaceManager);
			if (xmlNodeList.Count != 0)
			{
				this.countryName = xmlNodeList.Item(0).InnerText;
			}
		}