Fix regexp for custom root nodes

in Api::Helpers#to_xml