Parses an XML string and returns the according document.
| xml_string: | XML string to be parsed. |
The following exception may be raised:
| REXML::ParseException: | If the specified file is not wellformed. |
Source Code
# File active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 951 def parse(xml_string) Document.new(xml_string) end
<code/>and<pre/>for code samples.