Re: [xml] XPath with default namespace
- From: Daniel Veillard <veillard redhat com>
- To: Wai-Sun Chia <waisun chia compaq com>
- Cc: xml <xml gnome org>
- Subject: Re: [xml] XPath with default namespace
- Date: Thu, 19 Jul 2001 23:07:41 -0400
On Fri, Jul 20, 2001 at 01:15:49AM +0800, Wai-Sun Chia wrote:
But how do I dynamically get the URI out from the doc, so that I can put it in
xmlXPathRegisterNs()?
Reread my mail I explained how to extract the namespace list
in scope at a given point.
Hardcoding of the namespace "svg" and the URI
"http://www.w3.org/Graphics/SVG" is not a very good idea for generic
components...
I also explained why it was not a bad practice, reread my
mail it's not hardcoding, only the URI is used for matching
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Sep 17-18 2001 Brussels Red Hat TechWorld http://www.redhat-techworld.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]