您能帮我使用 Builder gem 构建以下 XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<Service>
<Source ID="1" Name="A"></Source>
</Service>
</soapenv:Body>
</soapenv:Envelope>
到目前为止,我结束了这个
builder = Builder::XmlMarkup.new
builder.instruct!(:xml, :encoding => "UTF-8")
builder.service { |p| p.source }
谢谢!