ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved