xmltree

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

 

NAME

xmltree - Prints the XML tree structure

 

SYNOPSIS

xmltree -i input filename [-o output filename] [-z]

 

DESCRIPTION

XMLTREE is a tool that strips out all data and repetitive tags in the XML file and displays the basic tree structure.

 

PARAMETERS

-i input filename
Specify the 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.

 

FILE OPTIONS

-o output filename
Specify the 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

Example 1. xmltree -i dat.xml -o rsl.xt Input file - dat.txt:
<?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>

    <Date>

      <row no="1">

        <Amount>273</Amount>

      </row>

Output file - rsl.xt:


<?xml version="1.0" encoding="euc-jp"?>
<purchase year="">

  <CustomerID>

    <Date>

      <row no="">

        <Amount></Amount>

      </row>

    </Date>

  </CustomerID>

  <title></title>

  <comment></comment>
</purchase>

 

SEE ALSO

xmltagcnt(1) For complete documentation and tutorial of xmltree and other commands, please visit http://musashien.sourceforge.net

 

BUG REPORT

If you find a bug in xmltree, please send 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:52 GMT, June 24, 2003