# File lib/openurl/context_object.rb, line 500
                def import_xml_common(ent, node) 
                        fmt = REXML::XPath.first(node, ".//ctx:format", {"ctx"=>"info:ofi/fmt:xml:xsd:ctx"})
                        ent.set_format(fmt.get_text.value) if fmt and fmt.has_text?

                        REXML::XPath.each(node, ".//ctx:identifier", {"ctx"=>"info:ofi/fmt:xml:xsd:ctx"}) do | id |
        ent.add_identifier(id.get_text.value) if id and id.has_text?
      end

                        priv = REXML::XPath.first(node, ".//ctx:private-data", {"ctx"=>"info:ofi/fmt:xml:xsd:ctx"})
                        ent.set_private_data(priv.get_text.value) if priv and priv.has_text?

                        ref = REXML::XPath.first(node, ".//ctx:metadata-by-ref", {"ctx"=>"info:ofi/fmt:xml:xsd:ctx"})                                        
                        if ref
        reference = {}
                                ref.to_a.each do |r|          
                                        if r.name() == "format"
                                                reference[:format] = r.get_text.value
                                        else 
                                                reference[:location] = r.get_text.value
                                        end                                        
                                end
        ent.set_reference(reference[:location], reference[:format])
                        end
                end