On this Page

    _parser

    Parse delimited or fixed-format records. These routines are used to convert data from either fixed-column format or delimited (eg tab-delimited, comma-delimited) to a useable JavaScript format.

    Functions

    The routines are passed descriptions of the format and names of the data items. The returned value is a JavaScript object which provides a convenient name/value list of all fields in the record.

    • _parser.delimited(record, names[, delimiter[, quote[, trim]]])
      Convert a delimited (eg tab-delimited) record.

    • _parser.delimitedToXml(fromfile, tofile, names[, delimiter[, quote[, trim]]])
      Convert a delimited file to an XML file.

    • _parser.fixed(record, format)
      Convert a fixed-column data record.

    • _parser.fixedToXml(fromfile, tofile, format)
      Convert a fixed-column data file to an XML file.

    • _parser.parms(record)
      (As of 3.1.001.03) Convert a string with name="value" syntax to a JavaScript object of properties and values.