cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iacopo ROZZO <iacopo.ro...@amadeus.com>
Subject CXF transformation feature to change namespace to element and all its children.
Date Tue, 06 Oct 2015 14:11:08 GMT
Hi all,

I'm using cxf 3.0.2 and I have a question regarding the CXF transformation feature<http://cxf.apache.org/docs/transformationfeature.html>.
I have the following scenario:

Input: All elements belong to namespace "ns.a"

<sales xmlns:"http://ns.a">
<book>
  <title>CXF ...</title>
  <price>38.68</price>
</book>
</sales>

Expected output: Elements book, title and price should belong to namespace "ns.b"
<sales xmlns:"http://ns.a">
<book xmlns:"http://ns.b">
  <title>CXF ...</title>
  <price>38.68</price>
</book>
</sales>

If I only add this entry "{http://ns.a}book => {http://ns.b}book" to the transformation
map the namespace is only changed to book element (as normal). Is there any way of qualifying
book and all its child elements without putting explicitly an entry for all book children
elements?

Thanks,
Iacopo


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message