I want to read the text value from an attribute .

If I set the query string to
xmlQuery="/DATABEANS/DATABEAN[@NAME='AGREEMENTBEAN']/@OBJECTSERVER//text()";
it will return blank for the @OBJECTSERVER attribute

However xmlQuery="/DATABEANS/DATABEAN[@NAME='AGREEMENTBEAN']/@OBJECTSERVER
will return the element.


How do I get the text value of the attribute ?



P.S. For elements the text() call appears to work OK
     xmlQuery="/DATABEANS/BEAN[NAME='DataBean']/STATEMENT/text()";
     will return the STATEMENT text.


Thanks in advance!


_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to