FIX4.4 How to validate a field

Imported from previous forum

[ original email was from Pritam Kamat - pritam.kamat@trialius.com ]

Hi

I am looking at making some validators and came across a tag such as this (from the FIX dtd).

<!ELEMENT LegDtdDt EMPTY>
<!ATTLIST LegDtdDt
FIXTag CDATA #FIXED '739’
DataType CDATA #FIXED 'LocalMktDate’
FullName CDATA #FIXED 'LegDatedDate’
ComponentType CDATA #FIXED 'Field’
Value ( 1 | 2 ) #REQUIRED
SDValue ( BookEntry | Bearer ) #IMPLIED >

This seems to suggest that the type is LocalMktDate which according to documentation must be of the form:
LocalMktDate: Date of Local Market (vs. UTC) in YYYYMMDD format…

But the dtd (and other information sources) says this is an enumerated type with values 1 and 2, (corresponding to self describing values "Book Entry" and "Bearer".

I cannot see how both can be true. Am I missing something here, or can someone explain how I am to interpret and ultimately validate such a field.

regards
Pritam Kamat

[ original email was from Pritam Kamat - pritam.kamat@trialius.com ]
I am reposting this as I didn’t get any response and wondered how FIX users are addressing what I believe to be a specification error as that below.

regards
Pritam

>
> Hi
>
> I am looking at making some validators and came across a tag such as this (from the FIX dtd).
>
> <!ELEMENT LegDtdDt EMPTY>
> <!ATTLIST LegDtdDt
> FIXTag CDATA #FIXED ‘739’
> DataType CDATA #FIXED ‘LocalMktDate’
> FullName CDATA #FIXED ‘LegDatedDate’
> ComponentType CDATA #FIXED ‘Field’
> Value ( 1 | 2 ) #REQUIRED
> SDValue ( BookEntry | Bearer ) #IMPLIED >
>
>
> This seems to suggest that the type is LocalMktDate which according to documentation must be of the form:
> LocalMktDate: Date of Local Market (vs. UTC) in YYYYMMDD format…
>
> But the dtd (and other information sources) says this is an enumerated type with values 1 and 2, (corresponding to self describing values “Book Entry” and “Bearer”.
>
> I cannot see how both can be true. Am I missing something here, or can someone explain how I am to interpret and ultimately validate such a field.
>
> regards
> Pritam Kamat
>
>
>

[ original email was from Jim Northey - jnorthey@jandj.com ]
Definitely looks like an error in the DTD and the FIXML Schema - which means it must be in the repository - we will capture this as an errata item.

>
> Hi
>
> I am looking at making some validators and came across a tag such as this (from the FIX dtd).
>
> <!ELEMENT LegDtdDt EMPTY>
> <!ATTLIST LegDtdDt
> FIXTag CDATA #FIXED ‘739’
> DataType CDATA #FIXED ‘LocalMktDate’
> FullName CDATA #FIXED ‘LegDatedDate’
> ComponentType CDATA #FIXED ‘Field’
> Value ( 1 | 2 ) #REQUIRED
> SDValue ( BookEntry | Bearer ) #IMPLIED >
>
>
> This seems to suggest that the type is LocalMktDate which according to documentation must be of the form:
> LocalMktDate: Date of Local Market (vs. UTC) in YYYYMMDD format…
>
> But the dtd (and other information sources) says this is an enumerated type with values 1 and 2, (corresponding to self describing values “Book Entry” and “Bearer”.
>
> I cannot see how both can be true. Am I missing something here, or can someone explain how I am to interpret and ultimately validate such a field.
>
> regards
> Pritam Kamat
>
>
>