title: Getting the contents of a xml tag NOT INSIDE A XML DOCUMENT
body: <p><strong>NOT USING A XML PARSER</strong>
  I want to get the contents of the XML tag so my XML file looks like ( Includes more than XML this is just the XML part )</p>
  
  <pre><code>&lt;ns1:CarrierServiceId&gt;PD_PRIVATPAKKER_W&lt;/ns1:CarrierServiceId&gt;
  &lt;ns1:LabellingReturned&gt;0&lt;/ns1:LabellingReturned&gt;
  &lt;ns1:DeliveryDate&gt;2012-07-27T23:00:00Z&lt;/ns1:DeliveryDate&gt;
  &lt;ns1:DespatchDate&gt;2012-07-26T22:59:59Z&lt;/ns1:DespatchDate&gt;
  &lt;ns1:International&gt;0&lt;/ns1:International&gt;
  &lt;ns1:ClearanceDocumentation&gt;0&lt;/ns1:ClearanceDocumentation&gt;
  &lt;ns1:ExceptionCode&gt;0&lt;/ns1:ExceptionCode&gt;
  </code></pre>
  
  <p>How would i get the contents of CarrierServiceId so i only get PD_PRIVATPAKKER_W and nothing else i've managed to get the line using below, but i need the contents</p>
  
  <pre><code>FOUND=$(awk '/&lt;ns1:CarrierServiceId&gt;/ {print $1}' TEST.tmp)
  
  echo "${FOUND}"
  </code></pre>