The correct sintax to replace in this case is with "-x" instead "-v" to eval expressions. Regards.
Hi, I'm trying to concat values in Windows OS and the result is the string without processing, with quote or double quotes. For example: xml.exe edit --inplace -N xmlns="http://maven.apache.org/POM/4.0.0" -u "//xmlns:groupId[starts-with(., 'org.company')]" -v "//xmlns:groupId[concat(substring-before(., 'org.company'), 'new', substring-after(., 'org.company'))]" pom.xml Result: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0...
Hi, I'm trying to concat values in Windows OS and the result is the string without processing, with quote or double quotes. For example: xml.exe edit --inplace -N xmlns="http://maven.apache.org/POM/4.0.0" -u "//xmlns:groupId[starts-with(., 'org.jacoco')]" -v "//xmlns:groupId[concat(substring-before(., 'org.jacoco'), 'new', substring-after(., 'org.jacoco'))]" pom.xml Result: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0...