Sample Validation

Sample Validation Code:

<?xml version="1.0" encoding="UTF-8"?>
<validate>
	<CRWGT_CREAT_WGT>

		<fieldType type="XA" mandatory="true" specialCharacter="" size="8" multiline="false">INPUT_PRODUCT</fieldType>
		<fieldType type="XA" mandatory="true" specialCharacter="" size="6" multiline="false">INPUT_SUB_PRODUCT</fieldType> 
		<fieldType type="XA" mandatory="true" specialCharacter="" size="5" multiline="false">INPUT_FUNCTION_CODE</fieldType>
		<fieldType type="XAN" mandatory="true" inclusive=""_ specialCharacter=" " size="40" multiline="false">WIDGET_ID</fieldType>
		<fieldType type="XA" mandatory="true" specialCharacter="" size="1" multiline="false">CONTAINER_FLAG</fieldType>
		<fieldType type="XA" mandatory="true" inclusive="," size="6" multiline="false">CHANNEL_ID</fieldType>
		
		<collection name="WIDGET_DEF" mandatory="true">
			<fieldType type="XAN" mandatory="true" inclusive=""_ specialCharacter=" " size="40" multiline="false">WIDGET_ID</fieldType>
			<fieldType type="XAN" mandatory="true" inclusive=" "_ size="40" multiline="false">WGT_DISPLAY_NM</fieldType>
			<fieldType type="XA" mandatory="true" specialCharacter="" size="1" multiline="false">CONTAINER_FLAG</fieldType>
			<fieldType type="XAN" mandatory="true" inclusive="-"_ specialCharacter=" " size="20" multiline="false">BUNDLE_KEY</fieldType>
			<fieldType type="XA" mandatory="true" inclusive="," size="6" multiline="false">CHANNEL_ID</fieldType>
			<fieldType type="XA" mandatory="true" specialCharacter="" size="1" multiline="false">WGT_RESIZE_IND</fieldType>
			<fieldType type="XA" mandatory="true" specialCharacter="" size="1" multiline="false">WIDGET_HEADER_IND</fieldType>
			<fieldType type="N" mandatory="false" specialCharacter="" size="38" multiline="false">WGT_HT_IN_PIXELS</fieldType>
			<fieldType type="N" mandatory="false" specialCharacter="" size="38" multiline="false">NO_OF_ROWS</fieldType>
			<fieldType type="XA" mandatory="true" specialCharacter="" size="1" multiline="false">IN_CATALOGUE_IND</fieldType>
			<fieldType type="XAN" mandatory="false" inclusive=""_ specialCharacter=" " size="60" multiline="false">OD_PRODUCT</fieldType>
			<fieldType type="XAN" mandatory="false" inclusive=""_ specialCharacter=" " size="60" multiline="false">OD_SUB_PRODUCT</fieldType>
			<fieldType type="XAN" mandatory="false" inclusive=""_ specialCharacter=" " size="60" multiline="false">OD_FUNCTION</fieldType>
		</collection>

		<collection name="WIDGET_BBAR" mandatory="false">
			<fieldType type="N" mandatory="false" size="3" multiline="false">POSITION</fieldType>
			<fieldType type="XAN" mandatory="false" inclusive=""_ size="24" multiline="false">BBAR_BTN_ID</fieldType>
			<fieldType type="XAN" mandatory="false" inclusive=" "_ size="25" multiline="false">BTN_DISPLAY_NM</fieldType>
			<fieldType type="XA" mandatory="false" specialCharacter="" size="1" multiline="false">BTN_TYPE_IND</fieldType>
		</collection>

	</CRWGT_CREAT_WGT>

	<VSBLTY_IS_MENUID_UNIQUE>
		<fieldType type="XA" mandatory="true" specialCharacter="" size="8" multiline="false">INPUT_PRODUCT</fieldType>
		<fieldType type="XA" mandatory="true" specialCharacter="" size="9" multiline="false">INPUT_SUB_PRODUCT</fieldType>
		<fieldType type="XA" mandatory="true" specialCharacter="" size="9" multiline="false">INPUT_FUNCTION_CODE</fieldType>
		<fieldType type="XAN" mandatory="true" inclusive=""_ size="40" multiline="false">ITEM_ID</fieldType>
	</VSBLTY_IS_MENUID_UNIQUE>

</validate>