Actually, your XPath selects the attribute, not it's value. And an attribute has a name and a value, hence, you're seeing the correct thing.
I think EXML has an Attribute class, which is what you're getting back. You can then call EXML methods on the Attribute object to retrieve (or update) the value of the attribute. If you want an xpath to generate just a string-value, without having to use the EXML APIs, then just wrap the whole darn thing with string(/my/xpath/here) That'll work, because the string-value of an attribute is the value, not the name. -bob On Thu, 17 Jan 2002 [EMAIL PROTECTED] wrote: > Hi all, > I found that when I ask for value of an attribute: > > /Configuration/@engineName > > I receive not just the value of the attribue, but > > "engineName = 'FirstEngine'" (pair of attribute name and value). > > But I want just the value, and other XPath tools I have interpret my > expression correctly. Is there any way how to force jaxen to work as I > want? > (I am using the electric.xml) > > br, > > Jakub > > > _______________________________________________ > Jaxen-interest mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jaxen-interest > _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest