Please send me a documentation paragraph that I can add to .find which makes this more explicit and understandable. Hopefully this will eliminate future confusion over the usage.
Thanks, Dan -- Dan Janowski [EMAIL PROTECTED] On Jan 15, 2008, at 10:46, Steven Parkes wrote: > I ended up looking at the code. I think, after I figured it out, I > was able > to interpret the documentation correctly, but I didn't find it > obvious at > first. And googling returns some bad examples, which didn't help. > > > From: sam mulube [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 15, 2008 5:12 AM > To: [EMAIL PROTECTED]; libxml-devel@rubyforge.org > Subject: Re: [libxml-devel] xpath searching without specifying > namespace? > > > Hey Steven, > > wow thanks, that works exactly as advertised! > > Incidentally, was this just something you figured out through > experiment or is it documented somewhere and I missed it? > > thanks again > > -- sam > > > On 15/01/2008, Steven Parkes <[EMAIL PROTECTED]> wrote: > > * however I can't get _any_ search results when > looking for elements > in a document that has specified a namespace, but > with the default/ > empty prefix. > > You have to make whatever default namespaces you use > explicit, e.g., try > something like this example for xhtml: > > items = doc.find '//x:span', > "x:http://www.w3.org/1999/xhtml" > > The original poster said that //* wasn't returning anything, > which I can't > duplicate: it returns everything for me, which I believe is > the correct > behavior. > > > _______________________________________________ > libxml-devel mailing list > libxml-devel@rubyforge.org > http://rubyforge.org/mailman/listinfo/libxml-devel > > > > > _______________________________________________ > libxml-devel mailing list > libxml-devel@rubyforge.org > http://rubyforge.org/mailman/listinfo/libxml-devel _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel