Exemplo n.º 1
0
        /// <summary>
        /// Load state from an XML element
        /// </summary>
        /// <param name="xmlElement">XML element containing new state</param>
        public override 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:SPUserNotice/xsd:NoticeRef", xmlNamespaceManager);
            if (xmlNodeList.Count != 0)
            {
                this.noticeRef = new NoticeRef();
                this.noticeRef.LoadXml((XmlElement)xmlNodeList.Item(0));
            }

            xmlNodeList = xmlElement.SelectNodes("xsd:SPUserNotice/xsd:ExplicitText", xmlNamespaceManager);
            if (xmlNodeList.Count != 0)
            {
                this.explicitText = xmlNodeList.Item(0).InnerText;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public SPUserNotice()
 {
     noticeRef = new NoticeRef();
 }