title: xPath data explode based on new line
body: <p>In my current project, with xPath I'm parsing this HTML code :</p>
  
  <pre><code>&lt;div class="prod_view_info"&gt;
      &lt;p&gt;notimportant&lt;/p&gt;&lt;p&gt;notimportant&lt;/p&gt;
      &lt;p&gt;
          &lt;b&gt;Putere (Consum/ora): &lt;/b&gt; 3W&lt;br&gt; 
          &lt;b&gt;Fasung: &lt;/b&gt; MR16&lt;br&gt; 
          &lt;b&gt;Tensiune de alimentare: &lt;/b&gt; 12V&lt;br&gt; 
          &lt;b&gt;Flux luminos: &lt;/b&gt; 270 - 300 lm&lt;br&gt; 
          &lt;b&gt;Flux luminos per Watt: &lt;/b&gt; 90-100 lm/W&lt;br&gt; 
          &lt;b&gt;Putere LED: &lt;/b&gt; 3* 1W&lt;br&gt; 
          &lt;b&gt;Frecventa de lucru: &lt;/b&gt; DC&lt;br&gt; 
          &lt;b&gt;Culoarea luminii: &lt;/b&gt;alba calda&lt;br&gt; 
          &lt;b&gt;Temperatura: &lt;/b&gt; 30 / 50°C&lt;br&gt; 
          &lt;b&gt;Material: &lt;/b&gt; Aluminiu&lt;br&gt; 
          &lt;b&gt;Grad de protectie: &lt;/b&gt; IP21&lt;br&gt; 
          &lt;b&gt;Durata de viata: &lt;/b&gt; &amp;gt; 50000 ore&lt;br&gt; 
          &lt;b&gt;Garantie: &lt;/b&gt;2 ani&lt;br&gt;
          &lt;b&gt;Certificate: &lt;/b&gt; 
      &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>with the following PHP code :</p>
  
  <pre><code>foreach( $xpathprd-&gt;query('//div[@class="prod_view_info"]/p[3]/node()') as $techdata ) {      
  
    $techdatap = $techdata-&gt;nodeValue; 
    $techdatapChunks = explode(":", trim($techdatap));
    $producttechdata[] = $techdatapChunks;
  }
  
  $techdata_json = json_encode($producttechdata);
  
  echo "&lt;hr&gt;$techdata_json";
  </code></pre>
  
  <p>The point is to get the pair of information on each line and serialize it with json, for example :</p>
  
  <pre><code>&lt;b&gt;Putere (Consum/ora): &lt;/b&gt; 3W&lt;br&gt;
  </code></pre>
  
  <p>should be :</p>
  
  <pre><code>["Putere (Consum/ora)","3W"]
  </code></pre>
  
  <p>But xpath strips out the tags and somewhere I'm missing some space and the explode result is all messed up .</p>
  
  <p>How do I make this work ?</p>