[erlang-questions] Re: xmerl and $'

Mark Fine mark.fine@REDACTED
Tue May 25 00:32:46 CEST 2010


Got it -- that works! Thanks!

Mark

On Mon, May 24, 2010 at 3:02 PM, Tim Fletcher <mail@REDACTED> wrote:
>> Huh? In my actual application, I've got lots of values being
>> returned in a single document -- I want to preserve these values,
>> not concatenate them altogether.
>
> It looks like you want to extract the content of each 'Key' element as
> a single string, in which case you need to concatenate the values of
> the text/content nodes within each element. Like this:
>
>  [lists:concat([Value || #xmlText{value=Value} <- Content]) ||
> #xmlElement{content=Content} <- xmerl_xpath:string("//Key", Doc)].
>
> Make sense?
>
> Tim
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>


More information about the erlang-questions mailing list