Additions:
NOTE: This program is being replaced by xedit with better control over editing features
||-rx,-replacex xpath||Replace matched node with evaluation of xpath with context at current node||
||-rx,-replacex xpath||Replace matched node with evaluation of xpath with context at current node||
Additions:
||-i,-input input|| use input as the source xml document, otherwise stdin
||-n||do not use a source context||
||-r,-replace expr||replace expr. If replace is string then replace the child text of matching nodes,
||-d ||Delete matching expression||
||-a,-add expr||Adds the expression (string, element, attribute) to all matching nodes||
||-e,-xpath xpath-expr||xpath expression||
||-m,-matches matches-expr||XSLT matches expression||
||-ren,-rename string||Renames the matching element or attribute to a new name||
||-n||do not use a source context||
||-r,-replace expr||replace expr. If replace is string then replace the child text of matching nodes,
||-d ||Delete matching expression||
||-a,-add expr||Adds the expression (string, element, attribute) to all matching nodes||
||-e,-xpath xpath-expr||xpath expression||
||-m,-matches matches-expr||XSLT matches expression||
||-ren,-rename string||Renames the matching element or attribute to a new name||
Deletions:
-input input|| use input as the source xml document, otherwise stdin
||-n ||do not use a source context||
||-r replace expr
-replace expr||replace expr. If replace is string then replace the child text of matching nodes,
||-d ||Delete matching expression||
||-a expr
-add expr||Adds the expression (string, element, attribute) to all matching nodes||
||-xpath xpath-expr
-e xpath-expr ||xpath expression||
||-matches matches-expr
-m matches-expr ||XSLT matches expression||
||-ren string
-rename string||Renames the matching element or attribute to a new name||
Additions:
**xed** evaluate an xpath expression and edits every matching node outputing the result document
Deletions:
Additions:
[[CommandXaddattribute xaddattribute]]
[[CommandXdelete xdelete]]
[[CommandXdelete xdelete]]
Additions:
Replace the /root/foo2 element with <bletch/>
xed -r <[<bletch/>]> -e /root/foo2
xed -r <[<bletch/>]> -e /root/foo2
Deletions:
xed <[<bletch/>]> -e /root/foo2
Additions:
Replaces the the node matching the xpath express //node with a text node "text" from the file "file.xml" , send to output.
Add the child element under the root element
xed -a <[ <child/> ]> -xpath /root
Replace the foo element with bletch
xed <[<bletch/>]> -e /root/foo2
Add the child element under the root element
xed -a <[ <child/> ]> -xpath /root
Replace the foo element with bletch
xed <[<bletch/>]> -e /root/foo2
Deletions:
Additions:
Deletes all nodes where the file[@name eq 'test']
xed -d -matches "file[@name eq 'test']"
xed -d -matches "file[@name eq 'test']"
Additions:
====Examples====
Replaces the the node matching the xpath express //node with a text node "text"
Adds an attribute to all file elements
xed -a -matches file <[ attribute { "attr" } { "value" } ]>
Replaces the the node matching the xpath express //node with a text node "text"
Adds an attribute to all file elements
xed -a -matches file <[ attribute { "attr" } { "value" } ]>
Deletions:
Additions:
xed [ [[SerializationOptions serialization options]] ] [options]
====Options====
||-r replace expr
-replace expr||replace expr. If replace is string then replace the child text of matching nodes,
||-a expr
-add expr||Adds the expression (string, element, attribute) to all matching nodes||
====Options====
||-r replace expr
-replace expr||replace expr. If replace is string then replace the child text of matching nodes,
||-a expr
-add expr||Adds the expression (string, element, attribute) to all matching nodes||
Deletions:
||-r replace
-replace replace||replace expr. If replace is string then replace the child text of matching nodes,
Additions:
xed -i file.xml -r text //node
Deletions:
Additions:
[[Commands]]
Additions:
||-v||Read remaining pairs of arguments as name/value pairs to assign as xpath variables||
Deletions:
Additions:
||-n ||do not use a source context||
Deletions:
Additions:
if replace is an XML expression then replace the matching node with the expression.||
Deletions:
Additions:
xed [ [[SerializationOptions serialization options]] ] [-i input] [-r replace] [-rename rename] [-d] [-n] [-e xpath-expr | -matches matches-expr] [-v name value [name value ...]]
||-i input
-input 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 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||
||-ren string
-rename string||Renames the matching element or attribute to a new name||
-v||Read remaining pairs of arguments as name/value pairs to assign as xpath variables||
Supports the standard [ [[SerializationOptions serialization options]] ]
||-i input
-input 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 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||
||-ren string
-rename string||Renames the matching element or attribute to a new name||
-v||Read remaining pairs of arguments as name/value pairs to assign as xpath variables||
Supports the standard [ [[SerializationOptions serialization options]] ]
Deletions:
-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
-ren
-rename string Renames the matching element or attribute to a new name
-v Read remaining pairs of arguments as name/value pairs to assign as xpath variables
Additions:
-ren
-rename string Renames the matching element or attribute to a new name
-rename string Renames the matching element or attribute to a new name
Additions:
xed [-i input] [-r replace] [-d] [-n] [-e xpath-expr | -matches matches-expr] [-v name value [name value ...]]
-d Delete matching expression
-d Delete matching expression
Deletions:
Deletions:
Additions:
xed [-i input] -r replace [-n] [-e xpath-expr | -matches matches-expr] [-v name value [name value ...]]
Deletions:
Additions:
======Command xed======
Deletions:
Deletions:
Additions:
xpath [-i input] -r replace [-n] [-e xpath-expr | -matches matches-expr] [-v name value [name value ...]]
-xpath xpath-expr
-e xpath-expr xpath expression
-matches matches-expr
-m matches-expr XSLT matches expression
-xpath xpath-expr
-e xpath-expr xpath expression
-matches matches-expr
-m matches-expr XSLT matches expression
Deletions:
xpath-expr xpath expression
matches-expr XSLT matches expression
Additions:
xpath [-f xpath-file] [-i input] -r replace [-n] [-e xpath-expr | -matches matches-expr] [-v name value [name value ...]]
matches-expr XSLT matches expression
[[CommandsInternal]]
matches-expr XSLT matches expression
[[CommandsInternal]]