1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 02:55:43 +02:00

nokogiri: add page

This commit is contained in:
pxgamer 2018-08-21 10:48:43 +01:00 committed by Agniva De Sarker
parent 73d32bb5d6
commit 93ffe6709b

23
pages/common/nokogiri.md Normal file
View file

@ -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}}`