Revision [793]

This is an old revision of CommandXed made by DavidLee on 2009-09-17 07:10:18.

 

Command xed


Name

xed evaluate an XPATH expression and edits every matching node outputing the result document

Synopsis

xed [-i input] [-r replace] [-d] [-n] [-e xpath-expr | -matches matches-expr] [-v name value [name value ...]]


Description

-i input use input as the source xml document, otherwise stdin
if input is an XML expression then use it directly (dont treat as filename).
-n do not use a source context
-r replace replace expr. If replace is string then replace the child text of matching nodes,
if replace is an XML expression then replace the matching node with the expression.

-d Delete matching expression

-xpath xpath-expr
-e xpath-expr xpath expression

-matches matches-expr
-m matches-expr XSLT matches expression
-v Read remaining pairs of arguments as name/value pairs to assign as xpath variables

Example

$ xed -i file.xml -r text //node 

Return Value

Returns 0 if the the xpath expression executed successfully. otherwise 1


CategoryCommands
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki