System.Xml.XmlBaseReader.FixXmlAttribute C# (CSharp) Méthode

FixXmlAttribute() protected méthode

protected FixXmlAttribute ( XmlAttributeNode attributeNode ) : void
attributeNode XmlAttributeNode
Résultat void
        protected void FixXmlAttribute(XmlAttributeNode attributeNode)
        {
            if (attributeNode.Prefix == xml)
            {
                if (attributeNode.LocalName == "lang")
                {
                    _nsMgr.AddLangAttribute(attributeNode.Value.GetString());
                }
                else if (attributeNode.LocalName == "space")
                {
                    string value = attributeNode.Value.GetString();
                    if (value == "preserve")
                    {
                        _nsMgr.AddSpaceAttribute(XmlSpace.Preserve);
                    }
                    else if (value == "default")
                    {
                        _nsMgr.AddSpaceAttribute(XmlSpace.Default);
                    }
                }
            }
        }
        protected bool OutsideRootElement