Make domain element optional in XML configuration (close #8).