Exemplo n.º 1
0
        /// <summary>
        /// Remove all tags
        /// </summary>
        public new void RemoveAllTags()
        {
            VXmlElement de = this.DocumentElement;

            if (de == null)
            {
                return;
            }
            else
            {
                de.RemoveAllTags();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create tag node
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public new void SetTag(string text)
        {
            VXmlElement de = this.DocumentElement;

            if (de == null)
            {
                throw new VXmlException(VXmlException.E0026_SET_NO_DOCUMENTELEMENT_ERROR_CODE, "Tag - " + text);
            }
            else
            {
                de.SetTag(text);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Remove tag by value
        /// </summary>
        /// <param name="name"></param>
        public new void RemoveTag(string tag)
        {
            VXmlElement de = this.DocumentElement;

            if (de == null)
            {
                return;
            }
            else
            {
                de.RemoveTag(tag);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Get tag node by name
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public new VXmlTag GetTagNode(string name)
        {
            VXmlElement de = this.DocumentElement;

            if (de == null)
            {
                return(null);
            }
            else
            {
                return(de.GetTagNode(name));
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// Select attributes of the node node matching xpath criteria
        /// </summary>
        /// <param name="xpath"></param>
        /// <returns></returns>
        public new VXmlAttributeCollection SelectAttributes(string xpath, string name = "*")
        {
            VXmlElement de = this.DocumentElement;

            if (de == null)
            {
                return(new VXmlAttributeCollection());
            }
            else
            {
                return(de.SelectAttributes(xpath, name));
            }
        }
Exemplo n.º 6
0
        /*
         * /// <summary>
         * /// Create attribute
         * /// </summary>
         * /// <param name="name"></param>
         * /// <returns></returns>
         * public new VXmlAttribute CreateAttribute(string name, string value = "")
         * {
         *  VXmlElement de = this.DocumentElement;
         *  if (de == null)
         *      throw new VXmlException(VXmlException.E0026_SET_NO_DOCUMENTELEMENT_ERROR_CODE, name);
         *  else
         *      return de.SetAttribute(name, value);
         * }
         */
        /// <summary>
        /// Set value/add attribute
        /// </summary>
        /// <param name="name"></param>
        /// <param name="value"></param>
        public new void SetAttribute(string name, string value)
        {
            VXmlElement de = this.DocumentElement;

            if (de == null)
            {
                throw new VXmlException(VXmlException.E0026_SET_NO_DOCUMENTELEMENT_ERROR_CODE, name);
            }
            else
            {
                de.SetAttribute(name, value);
            }
        }
Exemplo n.º 7
0
        /// <summary>
        /// Get attribute node by name
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public new VXmlAttribute GetAttributeNode(string name)
        {
            VXmlElement de = this.DocumentElement;

            if (de == null)
            {
                return(null);
            }
            else
            {
                return(de.GetAttributeNode(name));
            }
        }
Exemplo n.º 8
0
        /////////////////////////////////////////////////////////////////////////
        ////////////// ATTRIBUTE METHODS AND PROPERTIES WRAPPERS ////////////////
        /////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Get attribute value by name
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public new string GetAttribute(string name)
        {
            VXmlElement de = this.DocumentElement;

            if (de == null)
            {
                return("");
            }
            else
            {
                return(de.GetAttribute(name));
            }
        }