种类:转换;
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
Option | Description |
---|---|
Step name | Name of the step; this name has to be unique in a single transformation |
Encoding | The encoding to use; this encoding is specified in the header of the XML file |
Output Value | The 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 |