[erlang-questions] xmerl and selecting attributes

Ralf Doering rdoering@REDACTED
Tue Sep 8 14:37:39 CEST 2009

Hello Robert,

Robert Raschke <rtrlists@REDACTED> writes:
> On Tue, Sep 8, 2009 at 11:21 AM, Ralf Doering <rdoering@REDACTED> wrote:

>> I was expecting that value_of(select("@myattr"),E) would extract "123" as
>> attribute value. Am I wrong here, do I use the wrong XPath for this?
> I think the xmerl_xs:value_of/1 function will only ever return the text
> nodes of the element list you supply.


> So, I guess you have to get the value through the record itself.

Thank you for your reply. I already guessed that, and with your hints it
works perfectly now.


Ralf Döring
NetSys.IT GbR

More information about the erlang-questions mailing list