Hi All,
         I use camel for converting my xml file to csv. I was using camel
version 2.14.2, and i updated it to 2.16.2. now my conversion is not working
as expected.
In camel version 2.14.2 here's what my input and output looked like
Input:
 <?xml version="1.0" encoding="UTF-8"?> 
  <EmployeeList>
        <Employee>
                <id>id1</id>
                <name>name1</name>
                <age>age1</age>
                <city>city1</city>
                t...@mail.com
        </Employee>
        <Employee>
                <id>id2</id>
                <name>name2</name>
                <age>age2</age>
                <city>city2</city>
                <Phone>9086798</Phone>
        </Employee>
</EmployeeList>

Ouput:
id1|name1|age1|city1|t...@mail.com
id2|name2|age2|city2||9086798


if you notice in the second line of output email address field is missing
since it is not available in the second
record of xml, so in the output you get no values but it is empty.

After upgrading to camel 2.16.2 my output looks like this

Ouput:
id1|name1|age1|city1|t...@mail.com
id2|name2|age2|city2|9086798

Now if the filed is missing it is simply ignored. 
could any one of you help me to get the output that is used to get earlier
with camel 2.14 version



--
View this message in context: 
http://camel.465427.n5.nabble.com/Issue-in-xml-to-csv-conversion-tp5778103.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to