Re: [xml] XPath partially not working on doc built from xmlParseFile
- From: Guy Finney <gfinney symmetry-health com>
- To: xml gnome org
- Subject: Re: [xml] XPath partially not working on doc built from xmlParseFile
- Date: Mon, 25 Feb 2002 10:06:15 -0700
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]