Displaying 1 result from an estimated 1 matches for "translate_xml_entities".
2006 Jul 24
0
parsing xml from post
...-8"?>
<Transaction id="1">
<Authorization>
<Merid>test</Merid>
</Authorization>
</Transaction>
def self.typecast_xml_value(value)
case value
when Hash
if value.has_key?("__content__")
content = translate_xml_entities(value["__content__"])
case value["type"]
when "integer" then content.to_i
when "boolean" then content == "true"
when "datetime" then Time.parse(content)
when "date" then Dat...