I've an xml like this:
<?xml version="1.0" encoding="UTF-8"?>
<Environment
xmlns="http://ift.tt/1i5eaII"
xmlns:xsi="http://ift.tt/ra1lAU"
xmlns:oe="http://ift.tt/1i5eaII"
xmlns:ve="http://ift.tt/1fsAPiH"
oe:id=""
ve:vCenterId="vm-61">
<PlatformSection>
<Kind>VMware ESXi</Kind>
<Version>5.5.0</Version>
<Vendor>VMware, Inc.</Vendor>
<Locale>en</Locale>
</PlatformSection>
<PropertySection>
<Property oe:key="ppEnv" oe:value="production"/>
<Property oe:key="pphostname" oe:value="coolhostname"/>
</PropertySection>
<ve:EthernetAdapterSection>
<ve:Adapter ve:mac="00:50:56:94:9a:56" ve:network="Service" ve:unitNumber="7"/>
</ve:EthernetAdapterSection>
</Environment>
I'd like to get value of oe:key "pphostname" but I couldnt get a clear way of it.
No comments:
Post a Comment