BizdocToRecord array

When i do bizdocToRecord(bizdoc contains order), my array of line item(xml) is not populated in the recordlist of the lineItem (lineItem is a recordList in order record). I get only one record of line item.
Wheras if i do the orderxml->getFile->bytesT0String->stringToDoc->docToRecord(order record), i get all the lineItems and it is a recordList now…
Help…

Check the value specified in the “Format as a record” field on the Options tab of the Document Type Details dialog in TN for the doc type in question.

Found it out… got to add the recod name in the options tab “Format as record” in Document Type Details

Rob,
Thanks I posted my msg and then saw urs… thanks tho timing was fun