Zero Command [Z]. Robelle Suprtool 4.6.01, STExport, Suprlink
تبلیغات
تبلیغات
Doctype
A Document Type Declaration can be made at the beginning of the file via the
!DOCTYPE specification. This typically tells whatever tool that is parsing the xml file where the DTD for the file resides.
In STExport you can specify simple one-line doctype specs with the following command: xml doctype '!DOCTYPE address-book SYSTEM "address-book.dtd"'
This will write the doctype specification at the top of the output file, directly after the
XML version specification.
File
You can customize the "file" tags with the following command commands: xml file "orders"
STExport will put the "<" and ">" around what is specified in the File string.
Record
You can customize the "record" tags with the following command commands:
xml record "Details"
STExport will put the "<" and ">" around what is specified in the Record string.
Example
You can enter multiple XML commands per task to set the XML options you require.
$in file1sd
$xml version "?xml version='1.0' encoding='ISO-8859-1'?"
$xml file "Orders" record "Details"
$out myfile
An example of the output generated by the above commands is as follows:
<?xml version='1.0' encoding='ISO-8859-1'?>
<Orders>
<Details>
<CITY>Los Altos</CITY>
<CREDIT-RATING>100000</CREDIT-RATING>
<CUST-ACCOUNT>4003302</CUST-ACCOUNT>
<CUST-STATUS>20</CUST-STATUS>
<NAME-FIRST>Ralph</NAME-FIRST>
<NAME-LAST>Perkins</NAME-LAST>
<STATE-CODE>CA</STATE-CODE>
<STREET-ADDRESS>Room 655</STREET-ADDRESS>
<STREET-ADDRESS>Los Altos 040033022</STREET-ADDRESS>
<ZIP-CODE>93002</ZIP-CODE>
</Details>
</Orders>
Tags
In XML the tags that surrounded the data can not have any special characters other than hyphen, underscore and period ("-","_", "."). So STExport replaces any of the invalid special characters with a "." by default.
You can change the default character to be something else with the following set command:
Suprtool 4.6.01 for HP-UX User Manual STExport Commands
• 237
دانلود
تبلیغات