PDI的steps:(5:Add XML)

种类:转换;

id:AddXML

描述:Encode several fields into an XML fragment

 

The XML column step allows you to encode the content of a number of fields in a row in XML. This XML is added to the row in the form of a String field.

这个step,允许你把一行里的几个字段组合成一个xml格式的内容,并作为一个string字段存储到列里。

 

在这里编辑字段。

 

Content Tab

OptionDescription
Step nameName of the step; this name has to be unique in a single transformation
EncodingThe encoding to use; this encoding is specified in the header of the XML file
Output ValueThe name of the new field that contains the XML
Root XML element
The name of the root element in the generated element
Omit XML header Enable to not include the XML header in the output.

Fields tab

The Fields tab is where you configure the output fields and their formats. The table below describes each of the available properties for a field:

Option Description
Fieldname Name of the field
Element name The name of the element in the XML file to use
Type Type of the field can be either String, Date, or Number
Format Format mask with which to convert data; see Number Formats for a complete description of format specifiers
Length Output string is padded to this length if it is specified
Precesion The precision to use
Currency Symbol used to represent currencies like $10,000.00 or E5.000,00
Decimal A decimal point can be a "." (10,000.00) or "," (5.000,00)
Grouping A grouping can be a "," (10,000.00) or "." (5.000,00)
Null The string to use in case the field value is null.
Attribute Make this an attribute (N means : element)
Attribute parent name
You can specify the name of the parent element to add the attribute to if previous parameter attribute is set to Y.
If no parent name is specified, the attribute is set in the parent element. See also : PDI-1223

转载于:https://www.cnblogs.com/aomi/archive/2013/05/24/3096616.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值