I am writing an application to generate XML files as input to SipP.
One tag frequently used by SipP is ‘send’
The problem is, when I use nokogiri to build the xml for me
builder = Nokogiri::XML::Builder.new do |xml|
xml.send "Some Content"
end
I get this
<?xml version="1.0"?>
<Some Content/>
The same happens when I do this:
builder = Nokogiri::XML::Builder.new do |xml|
xml.send(:'send', "Some Content")
end
I can’t spell ‘SEND’ in capital letters, because SipP won’t understand it that way.
Any ideas how to force nokogiri to create an element with the name ‘send’?
Thank you
From the docs:
So check the following: