[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] xpath and element names
- From: Daniel Veillard <veillard redhat com>
- To: "Kralidis,Tom [Burlington]" <Tom Kralidis ec gc ca>
- Cc: xml gnome org
- Subject: Re: [xml] xpath and element names
- Date: Fri, 23 Nov 2007 16:41:39 -0500
On Fri, Nov 23, 2007 at 01:05:20PM -0500, Kralidis,Tom [Burlington] wrote:
>
> Hi,
>
> I'm using libxml2 Version: 2.6.29 on fc7, with the xpath functionality,
> to parse an XML document.
[...]
> Line 83 shows an attempt to fetch the name of the root element, but I'm
> not getting any results. What's the approach to fetching the name of an
> element in libxml2's xpath support?
in XPath it's name() / local-name() see the spec, of course it's the
same in libxml2 !
http://www.w3.org/TR/xpath#function-name
For XPath querying example:
http://xmlsoft.org/examples/index.html#XPath
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]