NAME
stag-flatten.pl - turns stag data into a flat table
SYNOPSIS
stag-flatten.pl MyFile.xml dept/name dept/person/name
DESCRIPTION
reads in a file in a stag format, and 'flattens' it to a tab-delimited table format. given this data:
(company
(dept
(name "special-operations")
(person
(name "james-bond"))
(person
(name "fred"))))
the above command will return a two column table
special-operations james-bond
special-operations fred
USAGE
stag-flatten.pl [-p PARSER] [-c COLS] [-c COLS]... <file> [COL][COL]...
ARGUMENTS
- -p|parser FORMAT
-
FORMAT is one of xml, sxpr or itext
xml assumed as default
- -c|column COL1,COL2,COL3,..
-
the name of the columns/elements to write out
(alternatively this argument can be written after the filename is specified)
BUGS
still not working quite right...