I'm also having difficulties with this issue, and while I feel that libxml could be perfect for what I need, the fact that the documentation seems both very minimal, and a bit out of date is making me wonder whether I'll be able to use it for the app I'm working on.
To reprise my situation: * searching for elements using XPath in a document with no namespace declaration works fine * searching for elements using XPath in a document that has defined a prefixed namespace declaration also works fine, provided the XPath query specifies the prefix as well as the desired element names * 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. Am I doing something stupid; or is this something that has been addressed in the latest head in subversion? If so is there any info on how to build the library from subversion? I did a quick checkout to have a look, and it looks like some additional hoops need to be jumped through before being able to build and install the latest head. Thanks for any information. -- sam On Dec 19 2007, 10:50 am, Yehuda Katz <[EMAIL PROTECTED]> wrote: > I'm having this issue as well. I wrote a CSS=>XPath converter in Ruby > and want to use libxml-ruby to do the searching. Unfortunately, once a > DOCTYPE is in place, #find finds nothing (even on a search of "//*"). > > Any progress? > > -- Yehuda Katz > > On Nov 28, 6:07 am, Trans <[EMAIL PROTECTED]> wrote:> On Nov 28, 2007 8:44 > AM, mortee <[EMAIL PROTECTED]> wrote: > > > > May I ask again? You wrote this almost two weeks ago, I guess. > > > C.S. Time. A day means a week; a week means a month; a month means at > > least 3 months; a year...well, no one thinks that far ahead; and most > > importantly "two weeks" is secret code for "when it gets done" which > > is usually never ;) > > > T. > > _______________________________________________ > > libxml-devel mailing list > > [EMAIL PROTECTED]://rubyforge.org/mailman/listinfo/libxml-devel > > _______________________________________________ > libxml-devel mailing list > [EMAIL PROTECTED]://rubyforge.org/mailman/listinfo/libxml-devel _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel