如何读取XML文件生成EXCEL文件通过Data Processor in Developer Client in B2B Data Transformation

Posted 窗外蔡大岭

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何读取XML文件生成EXCEL文件通过Data Processor in Developer Client in B2B Data Transformation相关的知识,希望对你有一定的参考价值。

ZZ:https://kb.informatica.com/howto/6/Pages/20/512058.aspx?

Solution
INFA_Solution
There is no direct option to create Relational to Excel format.
 
However, using Relational > XML > Excel, you could achieve this. Data Transformation (DT) provided XmlToXlsx or XmlToExcel document processor converts XML documents to Microsoft Excel format. 
 
However, these processors expect XML representation of an Excel workbook and it must be in the UTF-8 encoding input XML, which should be compliant to an XSD (ExcelToXml_03_07_10.xsd / ExcelToXml.xsd).
 
You can generate this input XML using Java transformation or it can be easily done with the following steps:
 
If you have Target Excel file format, then using ExcelToXml_03_07_10 (reverse of XmlToXlsx ) document processor, you can generate the input XML.
Now you need to read relational data and put the data into simple XML format and then convert into input XML.
 
Relational > Simple Xml > Input xml (compliant to ExcelToXml_03_07_10.xsd) > Target Excel xlxs format
 
技术分享图片 
  1. Create simple XSD/XML to hold your relational data into XML format.
  2. Create an Input hierarchy Data Processor using wizard option and select target as XML.

    New > Transformation > Data processor > Choose Create a data processor using a wizard option > Input format (Relational Data) > Output Format (XML ) > Select already created XML/XSD format > Finished. 

  3. Create another Data processor and using Script convert this simple XML to input XML with ExcelToXml_03_07_10.xsd standard.
          You can use serializer which can generate the required XML and then call the document processor XmlToXlsx to generate target XML.
           Refer attached project (Transformation DP_XML_EXCEL) to understand how to do this.??




以上是关于如何读取XML文件生成EXCEL文件通过Data Processor in Developer Client in B2B Data Transformation的主要内容,如果未能解决你的问题,请参考以下文章

如何通过读取XML配置文件导入Excel文件到数据中

C# 如何读取xml文件并输出信息到label上

使用 pandas 读取 Excel XML .xls 文件

Android中如何设置SharedPreference文件名称?

javaweb项目中,用户通过提交一个Excel文件,来改变Excel文件里面部分内容。

省厅报件7.0 读取mdb 生成xml 文件