DotNetXri.Client.Saml.Attribute.fromDOM C# (CSharp) Méthode

fromDOM() public méthode

public fromDOM ( XmlElement oElem ) : void
oElem System.Xml.XmlElement
Résultat void
        public void fromDOM(XmlElement oElem)
        {
            reset();

            // get the id attribute
            if (oElem.hasAttributeNS(null, Tags.ATTR_NAME))
            {
            msName = oElem.getAttributeNS(null, Tags.ATTR_NAME);
            }

            for (
            XmlNode oChild = oElem.FirstChild; oChild != null;
            oChild = oChild.NextSibling)
            {
            if (oChild.LocalName.Equals(Tags.TAG_ATTRIBUTEVALUE))
            {
                // only accept the first  element and make sure it
                // is a text node
                if (
                    (msValue.Equals("")) && (oChild.FirstChild != null) &&
                    (oChild.FirstChild.NodeType == XmlNode.TEXT_NODE))
                {
                    msValue = oChild.FirstChild.getNodeValue();
                }
            }
            }
        }