xmlenc

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

 

NAME

xmlenc - Encoding conversion

 

SYNOPSIS

xmlenc -e encoding name -i input filename [-o output filename] [-z]

 

DESCRIPTION

This converts or add encoding to xml data from the input file to the encoding type specified .

 

PARAMETERS

-e encoding type
this specifies the type of encoding of an output file

 

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 re ad the file as standard input when "-i" is not specified.

-o output filename
if a suffix of the filename is '.gz', the command automatically ret urns the output data in zip archive. When "-o" is not specified, th e result will sent to standard output.

-z zip archive
compress the standard output to zip archive. When the option "-o" i s not given and "-z" is specified, the output will be compressed as zip archive.

 

USAGE

Input file - dat.xml:
<?xml version="1.0" encoding="euc-jp"?>
<purchase year="2001">
<title>Customer Purchase History </title>
<comment>Artificial data is used for demonstration purpose</comment>

  <CustomerID>



  </CustomerID>
</purchase>

Example 1. xmlenc -i dat.xml -e UTF-8 -o rsl.xml
Output file -rsl.xml:


<?xml version="1.0" encoding="UTF-8"?>
<purchase year="2001">

 <title>Customer Purchase History </title>

 <comment>Artificial data is used for demonstration purpose</comment>

 <CustomerID>

 ..

 .

   </CustomerID>
</purchase>

Example 2. xmlenc -i dat.xml -e windows-1252 -o rsl.xml
Output file -rsl.xml:


<?xml version="1.0" encoding="windows-1252"?>
<purchase year="2001">

 <title>Customer Purchase History </title>

 <comment>Artificial data is used for demonstration purpose</comment>

 <CustomerID>

 ..

 .

   </CustomerID>
</purchase>

 

SEE ALSO

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

 

BUG REPORT

If you find a bug in xmlenc, 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