server/lib/cimi/models/resource.rb
# Construct a new object from the XML representation +xml+
Construct a new object from the XML representation +xml+
Construct a new object from the XML representation + xml +
def from_xml(text)
          xml = XmlSimple.xml_in(text, :force_content => true)
          model = self.new
          @schema.from_xml(xml, model)
          model
        end
def from_xml ( text ) xml = XmlSimple . xml_in ( text , :force_content => true ) model = self . new @schema . from_xml ( xml , model ) model end
Construct a new object from the XML representation +xml+
Construct a new object from the XML representation + xml +
text
<not_specific>