How would I do this - xml search related

Soldato
Joined
18 Oct 2002
Posts
7,515
Location
Maidenhead
Hi all,

Ive got about 3500 entries which look like

<WAGN>
<mutation>c</mutation>
<nummer>150686228</nummer>
<code>YE03VC</code>
<omschr>EURO</omschr>
<kentek>YE03VDC</kentek>
<ORGAcode>UKNC1</ORGAcode>
</WAGN>

I want to search the <kentek> tag for spaces.

How would I go about doing that?
 
basically I need to delete any spaces in that tag. Yes its one tag per line. Dont know what grep is sorry?
 
Cant do that mate as some of the other fields have spaces.

<?xml version="1.0" encoding="US-ASCII"?>
<CLEAR>
<WAGN>
<mutation>c</mutation>
<nummer>31</nummer>
<code>1247</code>
<omschr>Mercedes Artic</omschr>
<kentek>L801DOV</kentek>
<ORGAcode>UKMC0</ORGAcode>
</WAGN>
<WAGN>
<mutation>c</mutation>
<nummer>32</nummer>
<code>1248</code>
<omschr>Mercedes Artic</omschr>
<kentek>L802DOV</kentek>
<ORGAcode>UKMC0</ORGAcode>
</WAGN>
<WAGN>
<mutation>c</mutation>
<nummer>36</nummer>
<code>4039</code>
<omschr>Mercedes Rollonoff</omschr>
<kentek>M171LOK</kentek>
<ORGAcode>UKMC0</ORGAcode>
</WAGN>
<WAGN>
<mutation>c</mutation>
<nummer>59</nummer>
<code>5048</code>
<omschr>Volvo REL</omschr>
<kentek>M351POF</kentek>
<ORGAcode>UKMC0</ORGAcode>
</WAGN>
<WAGN>
<mutation>c</mutation>
<nummer>63</nummer>
<code>4048</code>
<omschr>Mercedes Rollonoff</omschr>
<kentek>N204AOF</kentek>
<ORGAcode>UKMC0</ORGAcode>
</WAGN>
</CLEAR>
 
Back
Top Bottom