Hello,
the RI-specific solution exposed would be fine, but we could expect
that getting a subnode from the root node of a JAXB object returns an
element object instead of a type object.
In this case, we would not need to "create" the name of the subnode to
marshall it.
regards