Created
July 26, 2017 09:41
-
-
Save Alexintosh/7468d70fe0d35bd99cabf5555b1226d3 to your computer and use it in GitHub Desktop.
Parse cordova config.xml from shell easily using xmllint --xpath
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<widget id="com.app.my" version="2.0.0" xmlns="http://www.w3.org/ns/widgets"> | |
<name>App BETA</name> | |
<description>app</description> | |
</widget> |
This file contains hidden or 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
xmllint --xpath "//*[local-name()='widget']/*[local-name()='name']/text()" config.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment