Method: Magpie::Utils#build_xml

Defined in:
lib/magpie/utils.rb

#build_xml(h = { }) ⇒ Object



29
30
31
32
33
34
# File 'lib/magpie/utils.rb', line 29

def build_xml(h = { })
  "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
    "<result>" +
    hash_to_xml(h) +
    "</result>"
end