Feedback
Did this article resolve your question/issue?

   

Article

Converting XML to CSV with the Connect for XML Converter, the CSV file is missing delimiters for XML fields that contain no data.

Information

 
TitleConverting XML to CSV with the Connect for XML Converter, the CSV file is missing delimiters for XML fields that contain no data.
URL NameConverting-XML-to-CSV-with-the-Connect-for-XML-Converter-the-CSV-file-is-missing-delimiters-for-XML-fields-that-contain-no-data
Article Number000185102
EnvironmentProduct: Connect for XML Converters
Version: All supported versions
OS: All supported platforms
Database: N/A
Application: All supported applications
Question/Problem Description
Converting XML to CSV with the Connect for XML Converter, the CSV file is missing delimiters for XML fields that contain no data.
Steps to Reproduce
Clarifying Information
For example:
<row>
    <A>aa</A>
    <C>cc</C>
</row>
<row>
    <A>bb</A>
    <B>cc</B>    
</row>

Returns:
aa|cc
bb|cc

Expected output is:
aa||cc
||bb|cc
 
Error Message
Defect Number
Enhancement Number
Cause

 
Resolution
The first row of the XML document must contain all fields in the element for delimiters to display in the CSV document. This first row basically creates a schema for rest of the document. The first row can be built using element or column names.

Using the example above:
For example:
<row>
    <A>Element1</A>
    <B>Element2</B>
    <C>Element3</C>
</row>
<row>
    <A>aa</A>
    <C>cc</C>
</row>
<row>
    <A>aa</A>
    <B>bb</B>    
</row>

Returns:
Element1|Element2|Element3
aa||cc
||bb|cc
 
Workaround
Notes
Last Modified Date2/16/2016 8:32 PM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.