function fromXML($xmlElement)
    {
        if ($xmlElement->getName() == "contacts") {
            foreach ($xmlElement->children() as $contactXml) {
                $contact = new Contact();
                $contact->fromXML($contactXml);
                $this->contacts[] = $contact;
            }
        }
    }