wrote:
> Now I want to read the value "attrValueB2" so I tried writing a
> regular expression for it. I know that the following selects the
> attribute (nicely highlighted by the Liquid XML Studio): /rootE/tagB/
> @attrB2
> But I cant seem to select the value of this attribute. I get an empty
> string when quering /rootE/tagB/@attrB2/text()
Attributes in the XPath data model don't have any text child nodes.
Simply use
/rootE/tagB/@attrB2
to select the attribute, then you would get the value in a way depending
on the host language e.g. in XSLT with
<xsl:value-of select="/rootE/tagB/@attrB2"/>
--
Martin Honnen
http://JavaScript.FAQTs.com/