Method
valueFor(attribute:)
Resolves the string value stored in a libxml2 attribute node.
func valueFor(attribute: XMLAttribute) -> String?
Parameters
attribute-
The attribute whose value should be read.
Return Value
The attribute value, or nil when the attribute has no string content.
Discussion
Use this when you already have an XMLAttribute value and want the attribute content as a Swift string.