How to use RemoveAttribute(String, String) in Ruby
What is Ruby?
It is a pure object-oriented language. One of its key features as compared to other languages is its simplicity. It is easy to read and write.
Features of Ruby
- Can be linked with HTML.
- Simplicity makes it easier for a new developer to learn the language.
- Used for developing internet and intranet applications.
- Has a significant number of inbuilt functions which increases the functionality of the language.
- Has similar syntax to C++ and many other programming languages.
- Is connectable to MySQL, Oracle, DB2.
- Is a server-side language identical to Perl and Python.
RemoveAttribute(String, String)
Removes current element’s attribute.
Syntax
public void RemoveAttribute (string localName, string namespaceUri);
Parameters
-
string localName: The local name of the attribute to remove. -
string namespaceUri: The attributes’s namespace URI to remove.
Exceptions
ArgumentOutOfRangeException:
The exception thrown when the localName is empty.