extensibility

Importing Delimited Text Files


XML Authority allows you to add the column headers for delimited text files to your schemas. The model imported from the text file will be added to the currently open schema, making it easy to integrate the information from the delimited file with your current work.

To import the header information of a delimited text file, select the Text File option from the Import submenu of the File menu or choose 'text file' from the Welcome window. The dialog box shown in Figure A will ask you to locate the text file. Select the file, and click the open button.

Element Types Window

Figure A - Choosing a Text File to Import

After XML Authority examines the file, it will ask how you want the information represented in your schema, and what element it should use as a container for that information, as shown in Figure B.

Element Types Window

Figure B - Selecting whether to import the model as elements or attributes

If you decide to import the information as attributes, XML Authority will create a single element with the column names as attributes, as shown below in Figure C.

Element Types Window

Figure C - The sample file imported as an attribute model.

If you decide to import the information as elements, XML Authority will create a parent element whose content model uses the column names as child elements, as shown below in Figure D.

Element Types Window

Figure D - The sample file imported as an element model.

Copyright 2000 Extensibility, Inc.

Suite 250, 200 Franklin Street, Chapel Hill, North Carolina 27516