stag-parse.pl man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

STAG-PARSE(1)	      User Contributed Perl Documentation	 STAG-PARSE(1)

NAME
       stag-parse.pl - parses a file and fires events (e.g. sxpr to xml)

SYNOPSIS
	 # convert XML to IText
	 stag-parse.pl -p xml -w itext file1.xml file2.xml

	 # use a custom parser/generator and a custom writer/generator
	 stag-parse.pl -p MyMod::MyParser -w MyMod::MyWriter file.txt

DESCRIPTION
       script wrapper for the Data::Stag modules

       feeds in files into a parser object that generates nestarray events,
       and feeds the events into a handler/writer class

ARGUMENTS
       -p|parser FORMAT
	   FORMAT is one of xml, sxpr or itext, or the name of a perl module

	   this is the class that parsers the input file(s) and generates stag
	   events

	   xml assumed as default

       -w|writer FORMAT
	   FORMAT is one of xml, sxpr or itext, or the name of a perl module

	   this is the class that catches the events thrown by the parser; it
	   can be any class, but the class is typically a writer

	   xml assumed as default

       -o|out FILE
	   the writer will use this file (defaults to STDOUT)

       -e|errf FILE
	   file to store parse error handler output

       -errhandler FORMAT/MODULE
	   FORMAT is one of xml, sxpr or itext, or the name of a perl module

	   all parse error events go to this module

       -r|root NODE_NAME
	   if this is specified, NODE_NAME becomes the root of the stag tree,
	   and anything that was previously the root is placed below this.

	   this happens automatically if more than one file is parsed (because
	   there can only be one tree root)

       -color
	   Works only if the output handler is able to provide ASCII-colors
	   (currently supported for itext and xml)

SEE ALSO
       Data::Stag

       This script is a wrapper for the method

	 Data::Stag->parse()

perl v5.14.1			  2004-04-17			 STAG-PARSE(1)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net