BizTalk Server General - Positional schemas

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > September 2005 > Positional schemas





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Positional schemas
Nateshan

2005-09-12, 6:07 pm

I am working on positional schema presently and having a peculiar problem
creating schema.

I have a following file structure for the schema.
Message Header
Type
Version Number
Message Content
Id
Code
NoOfProducts
Products
ProductName
Qty
NoOfCompartments
Compartments
ComponentNumber
ExemptNo
NoOfBaseProducts
BaseProductCode
TankerCode

In the above structure, If you notice there are Products,Compartments and
BaseproductCode, these records should repeat based on value in NoOfProducts,
NoOfCompartments and NoOfBaseProducts.

for Eg: If the value for NoOfProducts is 3 then the Products record Node
should repeat 3 times......its dynamic and depends on the value from the flat
file.

and the input file I will get is a big positional string and need to parse
that.

Anyone inputs will be appreciated.
Thanks



David Downing [MSFT]

2005-09-12, 6:07 pm

The flat file parser is entirely grammar driven and cannot be used to drive
the parse based on content of the message. If your positional records have
tags that can be used to identify each type of record, you might be able to
parse your data without the validation of the number of records parsed. If
this is not the case, you might have to develop a custom disassembler to
parse this type of data... I believe you can find examples of custom
disassemblers if you do a web search.

If you cut/paste your message data, I can help you determine if it can be
parsed by the BTS FF Parser.

--
Dave

This posting is provided "AS IS" with no warranties, and confers no rights.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com