Last active
December 28, 2015 09:49
-
-
Save nielsvanderbeke/7482297 to your computer and use it in GitHub Desktop.
xmllint and weblogic config.xml parsing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
one-liner | |
======================= | |
echo "cat //*[local-name()='domain']/*[local-name()='server']/*[local-name()='name']/text()"| xmllint --shell config.xml | grep -v "/ >" | grep -v " -------" | |
in shell mode | |
======================= | |
xmllint --shell config.xml | |
/ > setns x=http://xmlns.oracle.com/weblogic/domain | |
domain > dir x:name/text() | |
TEXT | |
content=wlsBplUatDomain | |
domain > dir x:server[*]/x:name/text() | |
TEXT | |
content=wlsBplAdminServer | |
TEXT | |
content=wlsBplMngdA1 | |
TEXT | |
activesync.connect.telenet.be | |
content=wlsBplMngdB1 | |
/ > exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment