To ensure that the exported XML is valid, make sure the selected package contains at least one domain participant library containing at least one Domain Participant. Otherwise, the tool takes care of the validity of references by including the elements referred from the selected package even if they are outside the selected Package.