Fixes #7; XML does not provide output

This issue was causes because the toXML method for
the Hal\Resource object was used but this returns a
SimpleXMLElement and not XML text. By applying the
asXml method of SimpleXmlElement we were able to
retrieve the XML Document as plain text.