groovy

improve the org.w3c.dom.Node support with List and Map methods

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0-JSR-4
  • Fix Version/s: 1.5.2
  • Component/s: groovy-jdk, XML Processing
  • Labels:
    None
  • Number of attachments :
    0

Description

org.w3c.dom.NodeList is supported with the object iteration methods (each, findAll, etc.)
However, a simple getAt(), setAt() is missing.
Maybe more List methods may be in order (e.g. size()).

org.w3c.dom.NamedNodeMap as returned by node.attributes should also be
accessible like a Map (getAt, putAt, get, ...)

the final goal would be to make org.w3c.dom.Node usages as easy as with groovy.util.Node.

Activity

Hide
Dierk Koenig added a comment -

DOMCategory.get and getAt should be aligned to return a NodeList for element calls

Show
Dierk Koenig added a comment - DOMCategory.get and getAt should be aligned to return a NodeList for element calls
Hide
Paul King added a comment -

I believe this is now in place. Anything which you note is missing?

Show
Paul King added a comment - I believe this is now in place. Anything which you note is missing?
Hide
Paul King added a comment -

Marking off as fixed for now - we can reopen with specific additions later if we find any.

Show
Paul King added a comment - Marking off as fixed for now - we can reopen with specific additions later if we find any.
Hide
Paul King added a comment -

close off release 1.5.4

Show
Paul King added a comment - close off release 1.5.4

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: