check if a string is XML formatted in Ruby

GTTG

New Member
I'm wondering if there's a function in Ruby like \[code\]is_xml?(string)\[/code\] to identify if a given string is XML formatted.
 
Back
Top