README.md - xml2tsv - a simple xml-to-tsv converter, based on xmlparser DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- README.md (1674B) --- 1 xml2tsv 2 ======= 3 4 This is a simple xml-to-tsv converter written in C and based on the 5 xmlparser library by Hiltjo Posthuma. 6 7 The filter reads an XML file from stdin and writes a 8 tab-separated-values file on stdout. For instance, the XML content 9 below: 10 11 <!DOCTYPE html> 12 <html> 13 <head> 14 <meta charset="utf-8"> 15 <meta name="viewport" content="width=device-width, initial-scale=1"> 16 17 <!-- FOR THE CURIOUS: This site was made by @thebarrytone. Don't tell my mom. --> 18 19 <title>Motherfucking Website</title> 20 </head> 21 22 <body> 23 <header> 24 <h1>This is a motherfucking website.</h1> 25 <aside>And it's fucking perfect.</aside> 26 </header> 27 </body> 28 </html> 29 30 is transformed in the following lines: 31 32 /html 33 /html/head 34 /html/head/meta charset=utf-8 35 /html/head 36 /html/head/meta name=viewport content=width=device-width, initial-scale=1 37 /html/head \n \n 38 /html/head/title Motherfucking Website 39 /html/body 40 /html/body/header 41 /html/body/header/h1 This is a motherfucking website. 42 /html/body/header/aside And it's fucking perfect. 43 44 Customisation 45 ============= 46 47 It is possible to customise several aspects of the output by changing 48 values in `config.h`. Please see the comments within that file or read 49 the manpage for more details. 50 51 Copying 52 ======= 53 54 `xml2tsv` is (c) 2020 by Vincenzo "KatolaZ" Nicosia. It can be used, 55 distributed, modified, and redistributed under the terms of the ISC 56 License. See the file LICENSE for more details.