Re: XML::LibXML::Element->find()
by Christian Glahn other posts by this author
Sep 5 2002 12:08PM messages near this date
view in the new Beta List Site
XML::LibXML::Element->find()
|
POSSIBLE BUG in XML::Simple
On Tue, Sep 03, 2002 at 06:54:27PM -0400, Calbazana, Al wrote:
> Can XML::LibXML::Element find work outside of being attached to a document?
> I have tried this method both attached and detached from a DOM with varied
> results. When attached, the find and findnodes() work methods as expected.
> When unattached, the find returns undef. Not sure what I am doing wrong
> here?
ok, the major problem lies with in libxml2, since it's current version
does not allow to run xpath queries on a standalone document fragment.
i patched libxml2 and found that these checks seem not to do any harm
if one removes them (at least a few simple tests worked).
i will request a patch for libxml2 that solves the problem, but in the
meantime the answer is: "sorry, you can't xpath document fragments".
christian
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Calbazana, Al
Christian Glahn
|