xmlGetAttr: Get the value of an attribute in an XML node
Description
This is a convenience function that retrieves
the value of a named attribute in an XML node,
taking care of checking for its existence.
It also allows the caller to provide a default
value to use as the return value if the
attribute is not present.