class CFPropertyList::ReXMLParser
def load(opts)
* :file - The filename of the file to load
opts::
read a XML file
def load(opts) doc = nil if(opts.has_key?(:file)) then File.open(opts[:file], "rb") { |fd| doc = REXML::Document.new(fd) } else doc = REXML::Document.new(opts[:data]) end if doc root = doc.root.elements[1] return import_xml(root) end rescue REXML::ParseException => e raise CFFormatError.new('invalid XML: ' + e.message) end