To import from a text file you'll have to select → → In the "Select text file" dialog choose the URL and the encoding to be
used and click OK. Next, in the "Import Criteria" Dialog select the field delimiter for the import
settings. The input data is displayed here in a tabular form and the XML Import
Preview contains an example of what the generated XML will look like. The above table shows the labels that will be used in the XML document and the
first 5 lines from the text file in a tabular form. All data items in the input will
be converted by default to element content, but this can be over-ridden by clicking
on the individual column headers. Clicking once on a column header will cause the
data from this column to be used as attribute values on the row elements. Clicking a
second time - the column's data will be ignored when generating the XML file. You
can cycle through these three options by continuing to click on the column header.
If the data column will be converted to element content, the header will contain the
"<>" symbol. If the data column will be converted to attribute content, the
header will contain the "=" symbol, and if it will be skipped, the header will
contain "x". - First row contains field names
If the option is checked, you'll notice that the table has moved up;
the default column headers are replaced (where there is information) by
the content of the first row. In other words, the first row is
interpreted as containing the field names. The changes are also visible
in the preview of the XML document. To return to default (where the
first row is interpreted as not containing field names), simply uncheck
the option. - Change labels
If the above option is set, the first row of the input file contains
presentation names and these will be used as tokens in the created XML
files, otherwise some generic heading names will be used. This button
opens a new dialog, allowing you to edit the names of the root and row
elements, change the XML name and the conversion criterion.
The XML names can be edited by double-clicking on the desired item and
entering the required label. The conversion criterion can also be
modified by selecting from the drop-down list ELEMENT, ATTRIBUTE or
SKIPPED. - Open in editor
If checked, the new XML document created from the imported text file
will be opened in the editor. - Save in file
If checked, the new XML document will be saved at the specified path. ![[Note]](img/note.gif) | Note |
|---|
If only Open in editor is checked, the newly created document will
be opened in the editor, but as an unsaved file. |
![[Note]](img/note.gif) | Note |
|---|
Click Back to return to Select text file Dialog. |
© 2008 syncRO soft ltd. |