I want to use bash scripts to get certain value in xml file, for example:
<?xml version="1.0" encoding="UTF-8"?>
-<Entities schemaVersion="1010" revision="2" modelPersistenceProviderPackage="PostgresPersistenceProviderPackage" minorVersion="1" majorVersion="8" build="b51">
-<ThingTemplates>
-<ThingShape>
-<PropertyDefinitions>
<PropertyDefinition name="version" description="" ordinal="45" baseType="STRING" aspect.defaultValue="1.0.0" isLocalOnly="false" category="" aspect.isReadOnly="false" aspect.isPersistent="false" aspect.isLogged="false" aspect.dataChangeType="VALUE" aspect.cacheTime="0.0"/>
</PropertyDefinitions>
</ThingTemplate>
</ThingTemplates>
</Entities>
How can I get the version value (1.0.0) from the xml file ?