Module: Plist

Defined in:
lib/ultra_pow_list/vendor/ruby1.8/plist/plist/parser.rb,
lib/ultra_pow_list/vendor/ruby1.8/plist/plist.rb,
lib/ultra_pow_list/vendor/ruby1.9/plist/plist.rb,
lib/ultra_pow_list/vendor/ruby1.9/plist/plist/parser.rb,
lib/ultra_pow_list/vendor/ruby1.9/plist/plist/generator.rb

Overview

–########################################################### Copyright 2006, Ben Bleything <[email protected]> and # Patrick May <[email protected]> #

#

Distributed under the MIT license. #

++ See Plist::Emit.

Defined Under Namespace

Modules: Emit Classes: Listener, PArray, PData, PDate, PDict, PFalse, PInteger, PKey, PList, PReal, PString, PTag, PTrue, StreamParser

Constant Summary collapse

VERSION =
'3.0.0'

Class Method Summary collapse

Class Method Details

.parse_xml(filename_or_xml) ⇒ Object

[email protected] so that I can implement the proper support.



24
25
26
27
28
29
30
# File 'lib/ultra_pow_list/vendor/ruby1.8/plist/plist/parser.rb', line 24

def Plist::parse_xml( filename_or_xml )
  listener = Listener.new
  #parser = REXML::Parsers::StreamParser.new(File.new(filename), listener)
  parser = StreamParser.new(filename_or_xml, listener)
  parser.parse
  listener.result
end