Home Page › Forums › BizTalk 2004 – BizTalk 2010 › BRE › Re: BRE
I’m talking about the non-BRE format. This XML are predefined by Customer containing set of rules.
The sample XML file below contains only few rules. It will be great if there is any way to convert XML file into BRE format XML programatically.
The sample XML file is as follows which contains some rules:
<?xml version=”1.0″?>
<DataView Name=”CAQH Provider Application View” xmlns=”urn:GeoAccess.PDE.DataView”>
<Structure Table=”Provider” Alias=”” MaxInstances=”1″>
<Existence Type=”Required” MinInstances=”1″>
<Message>Please select your provider type.</Message>
</Existence>
<Field Name=”LastName” DateFormat=”Standard”>
<Mask HardRule=”true” StripMask=”false”>
<OutputMask />
<Message>Last name must consist of one or more letters.</Message>
<RegExpression>^([A-Za-z]+((\-|([\.’]?[ ]?))[A-Za-z]+)*\.?)|(“[A-Za-z]+((\-|([\.’]?[ ]?))[A-Za-z]+)*\.?”)$</RegExpression>
</Mask>
<Existence Type=”Required” MinInstances=”1″>
<Message>Please indicate your Last Name.</Message>
</Existence>
<Translations />
</Field>
<Field Name=”FirstName” DateFormat=”Standard”>
<Mask HardRule=”true” StripMask=”false”>
<OutputMask />
<Message>First name must consist of one or more letters.</Message>
<RegExpression>^([A-Za-z]+((\-|([\.’]?[ ]?))[A-Za-z]+)*\.?)|(“[A-Za-z]+((\-|([\.’]?[ ]?))[A-Za-z]+)*\.?”)$</RegExpression>
</Mask>
<Existence Type=”Required” MinInstances=”1″>
<Message>Please enter your First Name</Message>
</Existence>
<Translations />
</Field>
<Field Name=”MiddleName” DateFormat=”Standard”>
<Mask HardRule=”true” StripMask=”false”>
<OutputMask />
<Message>Middle name must consist of one or more letters.</Message>
<RegExpression>^([A-Za-z]+((\-|([\.’]?[ ]?))[A-Za-z]+)*\.?)|(“[A-Za-z]+((\-|([\.’]?[ ]?))[A-Za-z]+)*\.?”)$</RegExpression>
</Mask>
<Translations />
</Field>
<Field Name=”BirthDate” DateFormat=”Standard”>
<Minimum HardRule=”true” Op=”None” ArgType=”Value”>
<Operand>0</Operand>
<ArgValue>1/1/1900</ArgValue>
<Message>Your birth date must be January 1, 1900 or greater.</Message>
</Minimum>
<Existence Type=”Required” MinInstances=”1″>
<Message>Please enter your birth date.</Message>
</Existence>
<Translations />
</Field>
<Field Name=”SSN” DateFormat=”Standard”>
<Mask HardRule=”true” StripMask=”true”>
<OutputMask>###-##-####</OutputMask>
<Message>SSN must be 9 digits.</Message>
<RegExpression>^(({\d\d\d}-{\d\d}-{\d\d\d\d})|({\d\d\d}{\d\d}{\d\d\d\d}))$</RegExpression>
</Mask>
<Existence Type=”Required” MinInstances=”1″>
<Message>Please indicate your social security number.</Message>
</Existence>
<Translations />
</Field>
</Structure>
</DataView>