Module: Plist

Defined in:
lib/facter/util/plist/parser.rb,
lib/facter/util/plist.rb,
lib/facter/util/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/facter/util/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