/// <summary> /// Remove all tags /// </summary> public new void RemoveAllTags() { VXmlElement de = this.DocumentElement; if (de == null) { return; } else { de.RemoveAllTags(); } }
/// <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); } }
/// <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); } }
/// <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)); } }
/// <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)); } }
/* * /// <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); } }
/// <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)); } }
///////////////////////////////////////////////////////////////////////// ////////////// 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)); } }