Example #1
0
        //private QualifiedName m_QualifiedName = null;
        //private QualifiedName GetXmlElementQName()
        //{
        //    XmlProperty xmlProp = GetXmlProperty();
        //    if (xmlProp != null)
        //    {
        //        //TODOx QualifiedName fields are unmutable,
        //        // so unless the underlying XmlProperty fields change, caching is okay
        //        // (here we assume that once a TreeNode as been XukedIn,
        //        // its XML definition does not change)
        //        if (m_QualifiedName == null || xmlProp.QNameIsInvalidated)
        //        {
        //            string nsUri = GetXmlNamespaceUri();

        //            m_QualifiedName = new QualifiedName(xmlProp.LocalName, nsUri);

        //            xmlProp.QNameIsInvalidated = false;
        //        }
        //    }
        //    else
        //    {
        //        m_QualifiedName = null;
        //    }

        //    return m_QualifiedName;
        //}


        public string GetXmlElementLang()
        {
            XmlProperty xmlProp = GetXmlProperty();

            if (xmlProp != null)
            {
                return(xmlProp.GetLangFromAttributes());
            }
            return(null);
        }