Uploaded image for project: 'Commons Digester'
  1. Commons Digester
  2. DIGESTER-105

[digester] Need to process [attribute id="name"]somename[/attribute]

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6
    • 3.0
    • None
    • Operating System: other
      Platform: Other

    • 34613

    Description

      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.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--code.zip
          21 kB
          Mark Ng
        2. ASF.LICENSE.NOT.GRANTED--code.zip
          21 kB
          Mark Ng
        3. ASF.LICENSE.NOT.GRANTED--code.zip
          21 kB
          Mark Ng

        Activity

          People

            simone.tripodi Simone Tripodi
            skitching Simon Kitching
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: