Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

33
tldr/xml-format Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# xml format
> Format an XML document.
> More information: <http://xmlstar.sourceforge.net/docs.php>.
- Format an XML document, indenting with tabs:
`xml format --indent-tab {{path/to/input.xml|URI}} > {{path/to/output.xml}}`
- Format an HTML document, indenting with 4 spaces:
`xml format --html --indent-spaces {{4}} {{path/to/input.html|URI}} > {{path/to/output.html}}`
- Recover parsable parts of a malformed XML document, without indenting:
`xml format --recover --noindent {{path/to/malformed.xml|URI}} > {{path/to/recovered.xml}}`
- Format an XML document from `stdin`, removing the `DOCTYPE` declaration:
`cat {{path o\input.xml}} | xml format --dropdtd > {{path/to/output.xml}}`
- Format an XML document, omitting the XML declaration:
`xml format --omit-decl {{path o\input.xml|URI}} > {{path/to/output.xml}}`
- Display help:
`xml format --help`