xml2xt

Section: User Commands (1)
Updated: 2002-10-26
Index Return to Main Contents

 

NAME

xml2xt - comvert from XML to XML Table

 

SYNOPSIS

xml2xt -k xml file pathname -f attribute(s) [-S element(s)] [-i input filename] [-o output filename] [-z]

 

DESCRIPTION

This command converts an xml file to an xmlTable file. In xml, the concept of a line(record) does not exist, while it does in xmlTable. Thus, we need to specify the line in xml file with parameter -k when this command is applied. Use -f to specify with attributes to be included in xmlTable. Elements which can be specified are limited to those specified by -k. Property of an element specified by -k can be given by -f. Space, enter and tab codes contained in an attribute to be output are all converted to underbar '_'. You can specify the character other than '_' by parameter -s. The same attribute cannot be specified more than one by -f.

 

PARAMETERS

-k xml path
Path of xml as a unit of each record .

-f attribute(s)
List of elements to be converted as attributes in xmlTable file.

-S element(s)
The character to replaces space.

 

FILE OPTIONS

-i input filename
If a suffix of the filename is '.gz', the command acts as a filter, extracting the compressed file for processing. The command will read the file as standard input when "-i" is not specified.
-o output filename
If a suffix of the filename is '.gz', the command automatically returns the output data in zip archive. When "-o" is not specified, the result will sent to standard output.
-z
compress the standard output to zip archive. When the option "-o" is not given and "-z" is specified, the output will be compressed as zip archive.

 

USAGE


 xml2xt -k /purchase/customerID/date/row -f brandname,quantity,amount -i dat.xml -o rsl.xt
 xml2xt -k /purchase/customerID/date/row -f /purchase/customerID@value,brandname -i dat.xml -o rsl.xt
 xml2xt -k /purchase/customerID/date/row -f brandname%n,quantity%f,amount -i dat.xml -o rsl.xt

 

SEE ALSO

xt2xml(1), xt2txt(1), txt2xt(1) For complete documentation and tutorial of xml2xt and other commands, please visit http://musashien.sourceforge.net

 

BUG REPORT

If you find a bug in xml2xt, please send an electronic mail to musashi@adm.osaka-sandai.ac.jp. Before sending a bug report, please verify that you have the lastest version of MUSASHI. Read this manual carefully to ensure the error is not caused by a quirk in the language.

 

AUTHORS

Yukinobu Hamuro, Naoki Katoh, Katsutoshi Yada, Stephane Cheung


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
FILE OPTIONS
USAGE
SEE ALSO
BUG REPORT
AUTHORS

This document was created by man2html, using the manual pages.
Time: 22:43:51 GMT, June 24, 2003