Ruby XML::Builder with hyphen in Element name Ruby XML::Builder with hyphen in Element name xml xml

Ruby XML::Builder with hyphen in Element name


xml.tag! 'latest-id', "latest ID with hiphen." 


I have tried to fix dash or hiphen in xml to do this.

xml.send("latest-id") "latest ID With hiphen"

For more reference to go this link xml with hiphen