[
https://issues.apache.org/jira/browse/DIGESTER-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simone Tripodi resolved DIGESTER-105.
-------------------------------------
Resolution: Fixed
Fix Version/s: 3.0
Assignee: Simone Tripodi
Fixed on Digester3 /trunk, see
[r1140140|http://svn.apache.org/viewvc?view=revision&revision=1140140]
There isn't the need of modifying the {{Digester}}, the {{Rules}} and so on,
just a little improvement on {{BeanPropertySetterRule}} does the magic.
Thanks for sharing the idea!
> [digester] Need to process [attribute id="name"]somename[/attribute]
> --------------------------------------------------------------------
>
> Key: DIGESTER-105
> URL: https://issues.apache.org/jira/browse/DIGESTER-105
> Project: Commons Digester
> Issue Type: Improvement
> Affects Versions: 1.6
> Environment: Operating System: other
> Platform: Other
> Reporter: Simon Kitching
> Assignee: Simone Tripodi
> Priority: Minor
> Fix For: 3.0
>
> Attachments: code.zip, code.zip, code.zip
>
>
> It is reasonably common to encounter xml like
> <person>
> <attribute id='name'>somename</attribute>
> <attribute id='age'>99</attribute>
> ..
> </person>
> Currently there is no built-in rule to support this in Digester:
> BeanPropertySetterRule supports <name>somename</name>
> SetPropertyRule supports <attribute id='name' value='somename'/>.
> SetPropertiesRule supports <attribute name='somename'/>
> but nothing supports the first syntax listed above.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira