<!--
	This fragment only require sap/m/MessageBox and make it available with
	variable Box. The "badButton" tries to use the "Toast" variable which
	is not available for this fragment.

	Processing this fragment should throw an error regarding the missing
	"Toast" variable.
-->
<Dialog id="xmlDialog" xmlns="sap.m" xmlns:core="sap.ui.core"
	title="XML Fragment Dialog"
	core:require="{Box:'sap/m/MessageBox'}">
	<Text id="xmlDialogTxt" text="test" />
	<buttons>
		<Button id="button1" text="Close" press="Box.show('Do you really want to close?')" />
		<Button id="button2" text="Toast" press="Toast.show('This is a toast')" />
	</buttons>
</Dialog>
