Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # set alias xl='xmlstarlet'
- xl ed -L -u '//spi[@name="x509cert-lookup"]/default-provider' -v "apache" test.xml
- xl ed -L -u '//spi[@name="x509cert-lookup"]/provider[@name="default"]/@name' -v "apache" test.xml
- xl ed -L -s '//spi[@name="x509cert-lookup"]/provider[@name="apache"]' -t elem -n "properties" test.xml
- xl ed -L -s '//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties' -t elem -n "property" test.xml
- xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "name" -v "sslClientCert" test.xml
- xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "value" -v "ssl-client-cert" test.xml
- xl ed -L -s '//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties' -t elem -n "property" test.xml
- xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "name" -v "sslCertChainPrefix" test.xml
- xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "value" -v "USELESS" test.xml
- xl ed -L -s '//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties' -t elem -n "property" test.xml
- xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "name" -v "certificateChainLength" test.xml
- xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "value" -v "0" test.xml
Add Comment
Please, Sign In to add comment