Guest User

Untitled

a guest
Dec 10th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. # set alias xl='xmlstarlet'
  2. xl ed -L -u '//spi[@name="x509cert-lookup"]/default-provider' -v "apache" test.xml
  3. xl ed -L -u '//spi[@name="x509cert-lookup"]/provider[@name="default"]/@name' -v "apache" test.xml
  4. xl ed -L -s '//spi[@name="x509cert-lookup"]/provider[@name="apache"]' -t elem -n "properties" test.xml
  5. xl ed -L -s '//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties' -t elem -n "property" test.xml
  6. xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "name" -v "sslClientCert" test.xml
  7. xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "value" -v "ssl-client-cert" test.xml
  8. xl ed -L -s '//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties' -t elem -n "property" test.xml
  9. xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "name" -v "sslCertChainPrefix" test.xml
  10. xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "value" -v "USELESS" test.xml
  11. xl ed -L -s '//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties' -t elem -n "property" test.xml
  12. xl ed -L -i '(//spi[@name="x509cert-lookup"]/provider[@name="apache"]/properties/property)[last()]' -t attr -n "name" -v "certificateChainLength" test.xml
  13. 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