From 93ffe6709b746af6779ee4ccad7487cae8baf649 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Tue, 21 Aug 2018 10:48:43 +0100 Subject: [PATCH] nokogiri: add page --- pages/common/nokogiri.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/nokogiri.md diff --git a/pages/common/nokogiri.md b/pages/common/nokogiri.md new file mode 100644 index 0000000000..c944c742e7 --- /dev/null +++ b/pages/common/nokogiri.md @@ -0,0 +1,23 @@ +# nokogiri + +> An HTML, XML, SAX and Reader parser. + +- Parse the contents of a url or file: + +`nokogiri {{url|path/to/file}}` + +- Parse as a specific type: + +`nokogiri {{url|path/to/file}} --type {{xml|html}}` + +- Load a specific initialisation file before parsing: + +`nokogiri {{url|path/to/file}} -C {{path/to/config_file}}` + +- Parse using a specific encoding: + +`nokogiri {{url|path/to/file}} --encoding {{encoding}}` + +- Validate using a RELAX NG file: + +`nokogiri {{url|path/to/file}} --rng {{url|path/to/file}}`