Writes a new attribute.

The name may be specified in clark-notation.

Returns true when successful.

Note: this function doesn't have typehints, because for some reason
PHP's XMLWriter::writeAttribute doesn't either.

@param string $name
@param string $value