i want to do this
xmllint --xpath "//filestodelete[filename = somename]/text()" #filestodelete#
and filestodelete is a BPEL variable of type XML
but it does not work
how to do this>??
i want to do this
xmllint --xpath "//filestodelete[filename = somename]/text()" #filestodelete#
and filestodelete is a BPEL variable of type XML
but it does not work
how to do this>??
Assuming you've put your query text in a shell variable named
query
(to make my examples terser) --With bash, you can use a herestring:
With POSIX sh, you need to use a heredoc:
By the way -- since not all versions of
xmllint
support--xpath
, you'd have better compatibility across releases if you used XMLStarlet instead, which has supported the following from its initial creation: