output application/xml writeNilOnNull=true
---
root: {
    x: in0.inventory.. map { value: $ } reduce ($$ ++ $),
    a: {(in0.inventory..&price)},
    b: {(in0..&price)},
    c: in0.inventory..@ reduce ($$ ++ $),
    d: {(in0.inventory..@flavor map {flavor: $})},
    e: {(in0.inventory..@supplier map {supplier: $})},
    f: {(in0.inventory..*lemonade..@supplier map {supplier: $})},
    g: in0.inventory..*lemonade[0].@supplier,
    h: {(in0..&comment)},
    i: {(in0.inventory..*lemonade..&price)},
    j: {(in0..&comment)},
    k: {(in0.inventory..&comment)},
    l: {(in0.inventory.drink.*lemonade.comments.&comment)},
    m: in0..foo,
    n: in0..foo?
}