| Summary: | Enhancement: Support co-located lists | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Blaise Doughan <blaise.doughan> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://stackoverflow.com/questions/7101474/with-moxy-and-xpath-is-it-possible-to-unmarshal-two-lists-of-attributes | ||
| Whiteboard: | |||
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
This enhancement is to support for marshalling/unmarshalling lists of attributes/text that appear co-located in the XML (see use cases below): Use Case #1 @XmlPath("item/@foo") private List<String> foo; @XmlPath("item/@bar") private List<String> bar; <root> <item foo="1" bar="a"/> <item foo="2" bar="b"/> <item foo="3" bar="c"/> </root> Use Case #2 @XmlPath("item/@foo") private List<String> foo; @XmlPath("item/text()") private List<String> bar; <root> <item foo="1">a</item> <item foo="2">b</item> <item foo="3">c</item> </root>