next up previous contents
Next: 3.1.2 How to Process Up: 3.1 How to Process Previous: 3.1 How to Process   Contents


3.1.1 How to Process a String

A string is a linear alpha-numeric phrase. A string must be defined in the FileData section and then read by the FileStructure section. This example processes three records, each of which is treated as a string.

Snippet from the Input Deck

Broadreach
Kennedy
2003

Snippet from the FSML File

<FileData>
  <String name="FerryLine"/>
  <String name="FerryName"/>
  <String name="CommDate" description="Date of commissioning"/>
</FileData>
 
<FileStructure>
  <Record ignoreOnRead="false"/>
    <SetValue target="FerryLine"/>
  </Record>
  <Record ignoreOnRead="false"/>
    <SetValue target="FerryName"/>
  </Record>
  <Record ignoreOnRead="false"/>
    <SetValue target="CommDate"/>
  </Record>
</FileStructure>


next up previous contents
Next: 3.1.2 How to Process Up: 3.1 How to Process Previous: 3.1 How to Process   Contents

SAIC Ship Technology Division, Annapolis, Maryland, USA
2004-10-26