Loads and parses an XML configuration file.
| filename: | Name of the configuration file to be loaded. |
The following exceptions may be raised:
| Errno::ENOENT: | If the specified file does not exist. |
| REXML::ParseException: | If the specified file is not wellformed. |
Source Code
# File active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 993 def load_xml_file(filename) parse(File.readlines(filename).to_s) end
<code/>and<pre/>for code samples.