Defines an Element Attribute; IE, a attribute=value pair, as in:
<element attribute="value">. Attributes can be in their own
namespaces. General users of REXML will not interact with the Attribute
class much.</element>
| Public Attributes |
| element |
The element to which this attribute belongs
|
| normalized |
The normalized value of this attribute. That is, the attribute with
entities intact.
|
| Public Methods |
| == |
Returns true if other is an Attribute and has the same name and value,
false otherwise.
|
| clone |
Returns a copy of this attribute
|
| element= |
Sets the element of which this object is an attribute. Normally, this is
not directly called.
|
| hash |
Creates (and returns) a hash from both the name and value
|
| inspect |
|
| namespace |
Returns the namespace URL, if defined, or nil otherwise
|
| new |
Constructor. FIXME: The parser doesn’t catch illegal characters in
attributes
|
| node_type |
|
| prefix |
Returns the namespace of the attribute.
|
| remove |
Removes this Attribute from the tree, and returns true if successfull
|
| to_s |
Returns the attribute value, with entities replaced
|
| to_string |
Returns this attribute out as XML source, expanding the name
|
| value |
Returns the UNNORMALIZED value of this attribute. That is, entities have
been expanded to their values
|
| write |
Writes this attribute (EG, puts ‘key="value"’ to the
output)
|
| xpath |
|
<code/>and<pre/>for code samples.