| XML Xdoc - easy data conversion from delimited text to XML |
|
Home Download/Install Case Studies Features Why XML Xdoc? Online Manual Pricing/Purchase FAQ CSV File Format About XML Feedback/Contact us |
CSV and delimited file formatsDelimited filesCSV data is the most common form of delimited file and has fields delimited by a comma. eg data,data,data The CSV 'standard' file formatAlmost all applications are able to output data in "CSV (comma delimited)(.csv)" format. XML Xdoc is able to process a wide variety of variations of csv, and delimited, file formats. A simple exampleIn its basic form a delimited file consits of rows of data fields which are separated by a delimiter. Think of fence posts and panels: PostPanelPost Header rowCSV, and other delimited, files can contain an optional header row consisting of the names of the fields in the data following. Empty dataWhen data are empty they can be expressed in one of two ways. XML Xdoc can handle both these formats of empty data. Empty space paddingThere is no standard as to whether empty spaces should be included, or excluded, from data. XML Xdoc is able to remove leading spaces, trailing spaces or leading and trailing spaces. Where standards differ mostThe real variation of the CSV, or delimited file format, is in the treatment of how double quotes, commas or delimiters within data are treated. Here is a three field csv delimited file with the second field containing a comma. However, some software would treat the above example as four fields with the second and third fields containing a double quote. Here is a three field csv delimited file with the second field containing a double quote. This data can also be represented by escaping the quote Microsoft's Excel spreadsheet has an option to export to comma separated value format. Excel escapes quote literals with two quotes. It also does not quote values that have leading or trailing whitespace. Some software does not quote literals with two quotes but uses the backslash as an escape character. XML XdocXML Xdoc uses a working definition of CSV format which has been adopted and used within software such as Microsoft Excel.
|
| www.xdoc.co.uk |
| Also from Trah, StarterFile: software to autorun files from CD. | Copyright © 2001-2006 Trah® |