xml: changes requested by marchersimon,
which undo the "the" changes previously made for sbrl. The `select`, `edit`, and `transform` subcommands are not yet ready.
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
4f79b0d5d1
commit
82f626c693
@@ -5,23 +5,23 @@
|
||||
|
||||
- Format an XML document, indenting with tabs:
|
||||
|
||||
`xml format --indent-tab {{path/to/input.xml|URI}} >{{path/to/output.xml}}`
|
||||
`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}}`
|
||||
`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}}`
|
||||
`xml format --recover --noindent {{path/to/malformed.xml|URI}} > {{path/to/recovered.xml}}`
|
||||
|
||||
- Format an XML document from the standard input, removing the DOCTYPE declaration:
|
||||
- Format an XML document from stdin, removing the DOCTYPE declaration:
|
||||
|
||||
`cat {{path\to\input.xml}} | xml format --dropdtd >{{path/to/output.xml}}`
|
||||
`cat {{path\to\input.xml}} | xml format --dropdtd > {{path/to/output.xml}}`
|
||||
|
||||
- Format an XML document, omitting the XML declaration:
|
||||
|
||||
`xml format --omit-decl {{path\to\input.xml|URI}} >{{path/to/output.xml}}`
|
||||
`xml format --omit-decl {{path\to\input.xml|URI}} > {{path/to/output.xml}}`
|
||||
|
||||
- Display help for the `format` subcommand:
|
||||
|
||||
|
Reference in New Issue
Block a user