commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <tom...@gmail.com>
Subject Re: Betwixt: successfully finding both elements and attributes but not within the same element
Date Tue, 20 Dec 2005 21:00:08 GMT
On 12/20/05, Jody Brooks <brooks.jody@gene.com> wrote:
> In other words, for this bit of xml "<Name DownloadURL="A">B</Name>" I can
> grab A or B but not both.
>
> At least, that is what I'm encountering with the .betwixt config below. I
> can successfully toggle it to grab either value but not both.

Think you need a <text> element for B. See

http://jakarta.apache.org/commons/betwixt/guide/binding.html

in Section "Using .betwixt files To Read And Write Mixed Content".

There are also some samples in betwixt's unit tests.
Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message