I have the following file log.xml:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<EntryList xmlns:i="http://ift.tt/ra1lAU" xmlns="http://ift.tt/1kc6kjG">
<Entries>
<RankedEntry>
<Entry>
<id>1</id>
<code1>001</code1>
<displayName>Entry 1</displayName>
<code2>003</code2>
<code3>0100000000000005203</code3>
<actualName>Entry Number 1</actualName>
<entryType>1</entryType>
<metaScore>1</metaScore>
<usage>81</usage>
</Entry>
<factor>30.738496780395508</factor>
<virtualFactor>45.738494873046875</virtualFactor>
</RankedEntry>
<RankedEntry>
<Entry>
<id>2</id>
<code1>001</code1>
<displayName>Entry 2</displayName>
<code2>003</code2>
<code3>0200000000000005203</code3>
<actualName>Entry Number 2</actualName>
<entryType>26</entryType>
<metaScore>1</metaScore>
<usage>61</usage>
</Entry>
<factor>40.738496780395508</factor>
<virtualFactor>55.738494873046875</virtualFactor>
</RankedEntry>
<RankedEntry>
<Entry>
<id>3</id>
<code1>001</code1>
<displayName>Entry 3</displayName>
<code2>003</code2>
<code3>0300000000000005203</code3>
<actualName>Entry Number 3</actualName>
<entryType>3</entryType>
<metaScore>1</metaScore>
<usage>41</usage>
</Entry>
<factor>50.738496780395508</factor>
<virtualFactor>65.738494873046875</virtualFactor>
</RankedEntry>
</Entries>
</EntryList>
On Window 7 using xmlstarlet 1.6.1 if I run the following command,
xml sel -t -m "/EntryList/Entries/RankedEntry/Entry/entryType" -v "." log.xml
Expected result is:
1
26
3
Actual: But I do not get anything back
Any ideas how to fix it?
No comments:
Post a Comment