Re: [xml] libxml2, xpath, accessing attribute value
- From: "Michael Kwasigroch" <mkwasigr intercope com>
- Cc: xml gnome org
- Subject: Re: [xml] libxml2, xpath, accessing attribute value
- Date: Sun, 27 Feb 2011 14:55:39 +0100
> Hello,
>
> I'm been experimenting with the xpath1.c program. How does a
person
> access the value of an attribute? I tried a few things that
did not work and I
> also read the man but that did not clarify the issue.
>
> I know I'm trying to access an attribute because the last item of
my xpath
> is a '@example'.
>
> appreciate the help,
> Henry
Henry,the XPATH syntax for accessing an attribute
is/path/to/node/@attributeNote the slash in front of the '@' -
it's not obvious or straightfoward I know but it works that way.
Cheers,- Michael________________________________________________________________
INTERCOPE International Communication Products Engineering GmbH
Himmelstrasse 12-16, 22299 Hamburg, Germany
Managing Directors: Reinhart Laumer, Frank Kollender
Commercial Registry: Amtsgericht Hamburg, HRB 31 638
________________________________________________________________
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
________________________________________________________________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]