Esempio n. 1
0
 /// <summary>Parses the specified <see cref="T:System.Xml.XmlNodeList" /> object as transform-specific content of a <see langword="&lt;Transform&gt;" /> element and configures the internal state of the current <see cref="T:System.Security.Cryptography.Xml.XmlDsigExcC14NTransform" /> object to match the <see langword="&lt;Transform&gt;" /> element.</summary>
 /// <param name="nodeList">An <see cref="T:System.Xml.XmlNodeList" /> object that specifies transform-specific content for the current <see cref="T:System.Security.Cryptography.Xml.XmlDsigExcC14NTransform" /> object.</param>
 public override void LoadInnerXml(XmlNodeList nodeList)
 {
     if (nodeList == null)
     {
         return;
     }
     foreach (XmlNode node in nodeList)
     {
         XmlElement element = node as XmlElement;
         if (element != null)
         {
             if (element.LocalName.Equals("InclusiveNamespaces") &&
                 element.NamespaceURI.Equals("http://www.w3.org/2001/10/xml-exc-c14n#") &&
                 Exml.HasAttribute(element, "PrefixList", "http://www.w3.org/2000/09/xmldsig#"))
             {
                 if (!Exml.VerifyAttributes(element, "PrefixList"))
                 {
                     throw new CryptographicException("Cryptography_Xml_UnknownTransform");
                 }
                 this.InclusiveNamespacesPrefixList = Exml.GetAttribute(element, "PrefixList", "http://www.w3.org/2000/09/xmldsig#");
                 break;
             }
         }
     }
 }