commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Евгений Антаев <ant...@gmail.com>
Subject Digester pattern with attribute
Date Wed, 04 Feb 2009 18:43:48 GMT
Hi

Can I use attribute value as a constraint in a pattern for Digester?

For example

<addressBook>
    ...
    <contact>
        <phone type='home'>00000000</phone>
        <phone type='work'>99999999</phone>
    </contact>
    ...
</addressBook>

I would like to use pattern to match home phone only. Something like
"contact/phone[@type='home']".

------
Evgeny

Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message