Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355225

Summary: Enhancement: Support co-located lists
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: 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:

Description Blaise Doughan CLA 2011-08-19 10:01:48 EDT
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>
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:35:00 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink