rubiii/savon — Issue #235: The soap.xml method documentation not clear
Author: martinos
Created: 2011-10-21 18:17:24+00:00
State: open

In your documentation you wrote:

> I would not recommend using a Hash for the SOAP body if you need to create complex XML structures, because there are better alternatives. One of them is to pass a block to the Savon::SOAP::XML#xml method. Savon will then yield a Builder::XmlMarkup instance for you to use.

```ruby
soap.xml do |xml|
xml.firstName("The")
xml.lastName("Hoff")
end
```
By reading this, I though that the envelope and the header was generated, but I was wrong. Maybe you should specify.