private Method

XmlSimple.load_xml_file(filename)

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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.