xmlfmt(1) - Linux man page

Name

xmlfmt - Print properties of xmlfiles formatted.

Syntax

xmlfmt [options]

path

Description

Print properties of xmlfiles formatted on a line by line basis.

Format of path:
node:prop = print value of nodes property
node.subnode:prop = print value of nodes subnodes property
%node = prune last node after match
@node = print textual value of node
{text}node:prop = prefix value with text
{text} = print text, always match
/{dflt}node:prop = print default text if prop missing

Special props: * = values of all properties
? = print the names of all properties
?* = print the names and values of all properties: NAME=VALUE

%@/{dflt}{pre}{post}path:prop

Options

-f file
Use file as input.
-d delim
Use delim as output delimiter.
-p
Prune matched nodes.
-u
Keep output as UTF8.
-n
Don't print newlines.
-w
Wrap values containing whitespace.
-s
Strip whitespace from ends of string.
-U
Replace whitespace with underscore.
-e
Use default if property is empty.
-t
Don't add toplevel node.
-h, --help
Output help information and exit.
-V, --version
Output version information and exit.

Examples

Authors

Jens L��s <Jens.Laas@data.slu.se>

See Also

xmlgrep(1) xmlmod(1)