Check the condition at the end before return like if body is <name/> then set the body to <name></name>.
----- Thanks & Regards, Sudhil Mishra. -- View this message in context: http://camel.465427.n5.nabble.com/Is-there-way-to-parse-in-camel-cxf-endpoint-for-empty-tag-s-as-name-name-tp5767301p5767303.html Sent from the Camel - Users mailing list archive at Nabble.com.