<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      It sounds like your custom view code is returning the wrong thing.
      When you create XML you need to return an element or
      documentfragment (*not* Document). These are from:<br>
      <br>
      $repo-&gt;xml-&gt;create_element( "tagname", attr =&gt; "bang" );<br>
      $repo-&gt;xml-&gt;create_document_fragment;<br>
      <br>
      Posting your code may be informative!<br>
      <br>
      --<br>
      All the best,<br>
      Tim.<br>
      <br>
      On 01/08/12 02:55, Edwards, Robin wrote:<br>
    </div>
    <blockquote
cite="mid:8E017FA162C43B4D98C2D2707D011CFA023173@HKNPRD0610MB386.apcprd06.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi all,<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">I have a relatively new installation of
          version of 3.3.6 and have implemented a custom menu renderer.&nbsp;
          Now I am attempting to use the example item renderer
          (render_view_item_3col_boxes) and running into &#8220;Can't import
          Documents! at /opt/eprints3/bin/../perl_lib/EPrints/XML.pm
          line 316&#8221; on first use (without any customisations).&nbsp; <o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">It seems to run into the error when trying
          to use the clone function (line 316 perl_lib/EPrints/XML.pm)
          on the $block variable (line 672
          perl_lib/EPrints/Update/Views.pm).<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">I attempted just returning simple strings
          (in a custom function) but still no dice.&nbsp; I can&#8217;t seem to
          locate what Is actually going wrong or where else I should be
          looking.&nbsp; Any advice would be appreciated.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Regards<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Rob<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-AU">--
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-AU">Robin
            Edwards, Computer Systems Officer, Information Technology
            &amp; Resources<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-AU">James
            Cook University, Townsville QLD 4811 AUSTRALIA
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-AU">P
            +61 7 4781 5846&nbsp;<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-AU">E
            <a moz-do-not-send="true"
              href="mailto:robin.edwards@jcu.edu.au">
              <span style="color:blue">robin.edwards@jcu.edu.au</span></a><o:p></o:p></span></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>