Such a simple answer, thank you!

P.S. No helper used;

-Don
-----Original Message-----
From: J�rg Walter [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 29 August, 2002 11:22
To: Don Shanks; [EMAIL PROTECTED]
Subject: Re: What is this error?


On Thursday 29 August 2002 20:07, Don Shanks wrote:
> I am hoping this is obvious to someone, it's not to me. The data below

> is what my taglib returns;
>
> <page>
>         <content>
>
> <table_data>foo</table_data>XML::LibXML::Element=SCALAR(0x8d8b068)</co
> nt
> ent>
> </page>
>
> This is the code that makes it:
>
>   my $doc = new 
> XML::LibXML->parse_string("<table_data>foo</table_data>");
>   if ($doc) {
>     my $root = $doc->getDocumentElement();
>     $root = $document->importNode($root,1);
>     $parent->appendChild($root);
>   } else {
>     die "XML::LibXML returned undef";
>   }
>

Since I don't know what taglib helper module (if any) you are using, I
can 
only guess, but it looks much like you just need to append:

return "";

since almost always the return value is inserted into the code one way
or 
another.

CU
J�rg



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to