Re: [xml] XPath partially not working on doc built from xmlParseFile



Daniel Veillard wrote:
 
  yes with the default namespace defined on the top node I bet
(or inherited from the DTD).
  But the nodes built from scratch don't have the default namespace
defined, right ? that explains the difference in behaviour.

Good catch! This was exactly the problem. The doc read from disk had a
DTD and namespace whereas the one built from scratch didn't. Hence the
unqualified searches worked for the latter but not the former. Many
thanks! It's nice when things make sense :) BTW, thanks also for
xmlXPathDebugDumpObject() - it sure makes debugging easier to quickly
see the result set.

-- 
Guy Finney
webmaster symmetry-health com
602-840-1910 x107



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]