Implemented XmlElement::toMap().