我想使用bash脚本在xml文件中获取特定值,例如:
<?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>
如何从xml文件中获取版本值(1.0.0)?