<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt">Really? When I do something like that, a body field with no data at all throws an exception. I knew it - Drupal hates me!<br><div><span><br></span></div><div>&nbsp;</div><div><font color="#ff007f" face="bookman old style, new york, times, serif" size="4"><i><b>Nancy</b></i></font> <br></div><div><font face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 12pt;"> <div style="font-family: times new
 roman, new york, times, serif; font-size: 12pt;"> <div class="y_msg_container"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Lucas D Hedding</font><br>
<div id="yiv351609580"><div dir="ltr">Nancy, I tend to do the following (using body as an example) in pseudo standard data import script.<div><br></div><div><div>$body = $wrapper-&gt;body-&gt;value();</div><div>if (empty($body)) {</div><div>&nbsp; // Do something, for example set a value to avoid Undefined variable notices</div>

<div>&nbsp; $wrapper-&gt;body-&gt;set(array('value' =&gt; ''));</div><div>}</div><div>// Now I can deal with the data as if it were populated.</div><div>if ($wrapper-&gt;body-&gt;value-&gt;raw() != $this-&gt;Body) {</div>

<div>&nbsp; $wrapper-&gt;body-&gt;set(array('value' =&gt; $this-&gt;Body, 'format' =&gt; 'full_html'));</div><div>}<br></div></div></div></div></div> </div> </div> </blockquote></div>   </div></body></html>