How to use SetAttribute(OpenXmlAttribute) in Ruby
What is Ruby?
Ruby is a pure object-oriented language. One of its key features is its simplicity when compared to other languages. It is easy to read and write.
Features of Ruby
-
It can be linked with HTML.
-
Its simplicity makes it easier for a new developer to learn the language.
-
It is used for developing internet and intranet applications.
-
It has a significant number of built-in functions, which increases the functionality of the language.
-
It has a syntax similar to C++ and many other programming languages.
-
It is connectable to MySQL, Oracle, and DB2.
-
It is a server-side language identical to Perl and Python.
SetAttribute(OpenXmlAttribute)
This sets an attribute to the selected element. The value of the attribute is set when it is a known attribute. openxmlAttribute is added to the extended attributes list when it is an extended attribute.
Syntax
public void SetAttribute (DocumentFormat.OpenXml.OpenXmlAttribute openXmlAttribute);
Parameters
openXmlAttribute: The attribute to be set on the element.
Exceptions
ArgumentNullException
Thrown if the openxmlAttribute parameter has a local name as null or empty.
InvalidOperationException
Thrown when an action is made to set a namespace declaration.