lib/rets/metadata/root.rb
# Returns an array of container classes that represents
# the metadata stored in the document provided.
Returns an array of container classes that represents
the metadata stored in the document provided.
Returns an array of container classes that represents the metadata stored in the document provided .
def build_containers(doc)
        fragments = doc.xpath("/RETS/*[starts-with(name(), 'METADATA-')]")
        fragments.map { |fragment| build_container(fragment) }
      end
def build_containers ( doc ) fragments = doc . xpath ( "/RETS/*[starts-with(name(), 'METADATA-')]" ) fragments . map { | fragment | build_container ( fragment ) } end
Returns an array of container classes that represents
the metadata stored in the document provided.
Returns an array of container classes that represents the metadata stored in the document provided .
# find all tags that match /RETS/METADATA-*
doc