instance method
load_xml_file
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3 PrivateSignature
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.
Parameters
-
filenamereq
Source
# File activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 993
def load_xml_file(filename)
parse(File.readlines(filename).to_s)
end
Defined in activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb line 993
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in XmlSimple