in reply to LibXML 'Fun'
Is that a literal copy/paste of your code? If so, proper (or at least consistent) indentation might help sort things out, or at least would help to rule out potential culprits. Looking at your code, my first impression was a scoping issue, along the lines of
Indentation would have made this one easier to rule out. My second impression is that $list[0] isn't really where you want to put your new tree, but then you're not showing us code that prints the page, so I can't tell.while ( my $row = ... ) { my $node = ... } $list[0]->push($node); # node may be undef
Please consider a small, complete example that demonstrates the problem. The process of producing such an example is often sufficient to flush out the culprit.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: LibXML 'Fun'
by stefzody (Acolyte) on Oct 12, 2003 at 00:43 UTC | |
by dws (Chancellor) on Oct 12, 2003 at 01:07 UTC | |
by stefzody (Acolyte) on Oct 12, 2003 at 01:56 UTC | |
by dws (Chancellor) on Oct 12, 2003 at 03:31 UTC |