iadd manpage - xml2tsv - a simple xml-to-tsv converter, based on xmlparser Err bitreich.org 70
1Log /scm/xml2tsv/log.gph bitreich.org 70
1Files /scm/xml2tsv/files.gph bitreich.org 70
1Refs /scm/xml2tsv/refs.gph bitreich.org 70
1Tags /scm/xml2tsv/tag bitreich.org 70
1README /scm/xml2tsv/file/README.md.gph bitreich.org 70
1LICENSE /scm/xml2tsv/file/LICENSE.gph bitreich.org 70
i--- Err bitreich.org 70
1commit 2245701946acd39e542918839c9dd80b19f6902e /scm/xml2tsv/commit/2245701946acd39e542918839c9dd80b19f6902e.gph bitreich.org 70
1parent c12282c0074f4af4ef5c41ab489f64576bc932c3 /scm/xml2tsv/commit/c12282c0074f4af4ef5c41ab489f64576bc932c3.gph bitreich.org 70
hAuthor: KatolaZ <katolaz@freaknet.org> URL:mailto:katolaz@freaknet.org bitreich.org 70
iDate: Sun, 5 Jan 2020 07:40:47 +0000 Err bitreich.org 70
i Err bitreich.org 70
iadd manpage Err bitreich.org 70
i Err bitreich.org 70
iDiffstat: Err bitreich.org 70
i M README.md | 4 ++-- Err bitreich.org 70
i A xml2tsv.1 | 67 +++++++++++++++++++++++++++++++ Err bitreich.org 70
i Err bitreich.org 70
i2 files changed, 69 insertions(+), 2 deletions(-) Err bitreich.org 70
i--- Err bitreich.org 70
1diff --git a/README.md b/README.md /scm/xml2tsv/file/README.md.gph bitreich.org 70
i@@ -45,8 +45,8 @@ Customisation Err bitreich.org 70
i ============= Err bitreich.org 70
i Err bitreich.org 70
i It is possible to customise several aspects of the output by changing Err bitreich.org 70
i-values in `config.h`. Please see the comments within that file for more Err bitreich.org 70
i-details. Err bitreich.org 70
i+values in `config.h`. Please see the comments within that file or read Err bitreich.org 70
i+the manpage for more details. Err bitreich.org 70
i Err bitreich.org 70
i Copying Err bitreich.org 70
i ======= Err bitreich.org 70
1diff --git a/xml2tsv.1 b/xml2tsv.1 /scm/xml2tsv/file/xml2tsv.1.gph bitreich.org 70
i@@ -0,0 +1,67 @@ Err bitreich.org 70
i+.TH XML2TSV 1 "04/01/2020" "" "" Err bitreich.org 70
i+.SH NAME Err bitreich.org 70
i+xml2tsv \- simple xml-to-tsv converter Err bitreich.org 70
i+.SH SYNOPSIS Err bitreich.org 70
i+.PP Err bitreich.org 70
i+xml2tsv Err bitreich.org 70
i+.PP Err bitreich.org 70
i+.SH DESCRIPTION Err bitreich.org 70
i+.PP Err bitreich.org 70
i+xml2tsv is a simple tool to convert XML given on standard input to a list of Err bitreich.org 70
i+tab-separated-values records. Each XML entry is converted to a line Err bitreich.org 70
i+like: Err bitreich.org 70
i+.EX Err bitreich.org 70
i+ Err bitreich.org 70
i+ /full/path/to/current/entry[TAB]attr1=value1[TAB]attr2=value2[TAB]...[TAB]data[NEWLINE] Err bitreich.org 70
i+ Err bitreich.org 70
i+.EE Err bitreich.org 70
i+where Err bitreich.org 70
i+.I "/full/path/to/current/entry" Err bitreich.org 70
i+represents the full hierarchy of entries down to the current one. For Err bitreich.org 70
i+instance, the XML snippet: Err bitreich.org 70
i+.EX Err bitreich.org 70
i+ Err bitreich.org 70
i+ <html> Err bitreich.org 70
i+ <head> Err bitreich.org 70
i+ <title>This is a title</title> Err bitreich.org 70
i+ </head> Err bitreich.org 70
i+ <body> Err bitreich.org 70
i+ <h1>It works!</h1> Err bitreich.org 70
i+ <a href="https://my.wonderful.website.net">Click here</a> Err bitreich.org 70
i+ </body> Err bitreich.org 70
i+ </html> Err bitreich.org 70
i+ Err bitreich.org 70
i+.EE Err bitreich.org 70
i+will produce the output: Err bitreich.org 70
i+.EX Err bitreich.org 70
i+ Err bitreich.org 70
i+ /html Err bitreich.org 70
i+ /html/head Err bitreich.org 70
i+ /html/head/title This is a title Err bitreich.org 70
i+ /html/body Err bitreich.org 70
i+ /html/body/h1 It works! Err bitreich.org 70
i+ /html/body/a href=https://my.wonderful.website.net Click here Err bitreich.org 70
i+ Err bitreich.org 70
i+.EE Err bitreich.org 70
i+By default, xml2tsv quotes '\\n', '\\t', and '\\', and strips other Err bitreich.org 70
i+control characters. Err bitreich.org 70
i+.SH CONFIGURATION Err bitreich.org 70
i+The maximum length of an entry name and the maximum depth of an entry Err bitreich.org 70
i+are fixed to STR_MAX and DEPTH_MAX, and can be changed by editing the Err bitreich.org 70
i+file Err bitreich.org 70
i+.BI config.h Err bitreich.org 70
i+and rebuilduing xml2tsv. It is also possible to change the separator Err bitreich.org 70
i+used on output (SEP, by default set to '\\t'), and the character used to Err bitreich.org 70
i+separate the name of an attribute from its value (SATTR, by default set Err bitreich.org 70
i+to '='). Err bitreich.org 70
i+.SH BUGS Err bitreich.org 70
i+ Err bitreich.org 70
i+xml2tsv currently lacks an option to force printing control characters Err bitreich.org 70
i+on output, if desired. Err bitreich.org 70
i+ Err bitreich.org 70
i+.SH AUTHORS Err bitreich.org 70
i+xml2tsv is written and maintained by Vincenzo "KatolaZ" Nicosia Err bitreich.org 70
i+<katolaz@freaknet.org>. The code is based on Err bitreich.org 70
i+.BI xmlparser Err bitreich.org 70
i+by Hiltjo Posthuma <hiltjo@codemadness.org>. You can use, distribute, Err bitreich.org 70
i+modify, and redistribute xml2tsv under the terms of the ISC License. Err bitreich.org 70
.
Response:
text/plain