XML Business Document

The data types that you can apply depend on the data class. In turn, the possible data classes depend on the structure type of the Business Document. For more information, see Business Document structure, Business Documents, and Axway Mapping Services DML Reference Guide

In Mapping Services, you use XML type Business Documents in a Map, where the XML Business Document specifies an XML standardized organization of data that is either received as input, or generated as output by a Map Engine.

Data class Data type Pattern Definition field value

Boolean

Boolean   5 (indicates XML Boolean)

Boolean [false, true]

 

5 (indicates XML Boolean)

Boolean [0,1]

 

1 (indicates XML Boolean)

Date & Time

Date_time (dp)

YYYY-MM-DD

10

timeInstant (dp)

YYYY-MM-DDThh:mm:ss.3zzzzzz

Where:

T = separator

zzzzzz = a time zone that has the syntax: (+|-)hh:mm | Z

29

Integer

Integer (p)

p

10 (p defines the precision which is the total number of significant digits. It does not include the sign.)

positiveInteger (p)

p

10 (p defines the precision which is the total number of significant digits. It does not include the sign.)

nonPositiveInteger (p)

p

10 (p defines the precision which is the total number of significant digits. It does not include the sign.)

negativeInteger (p)

p

10 (p defines the precision which is the total number of significant digits. It does not include the sign.)

nonNegativeInteger (p)

p

10 (p defines the precision which is the total number of significant digits. It does not include the sign.)

Long

 

19 (This precision cannot be greater than 20.)

unsignedLong

 

20 (This precision cannot be greater than 20.)

Int

 

10 (This precision cannot be greater than 20.)

unsignedInt

 

9 (This precision cannot be greater than 10.)

Short

 

5 (This precision cannot be greater than 5.)

unsignedShort

 

5 (This precision cannot be greater than 5.)

Byte

 

19 (This precision cannot be changed.)

unsignedByte

 

3 (This precision cannot be greater than 3.)

Real number

Decimal (p,s)

p,s

18,6 The p defines the precision which is the total number of significant digits before and after the decimal separator. It does not include the sign or the decimal separator.

Double (p,s)1

p,s

18,6 (s defines the maximum scale part. It does not include the sign or the decimal separator.)

Float (ps)1 p,s

18,6 (s defines the maximum scale part. It does not include the sign or the decimal separator.)

Double (m,e)1

m,e

18,3 (m defines the mantissa which is like a decimal. The e defines the length of the exponent which is like an integer.)

Float (m,e)1

m,e

18,3 (m defines the mantissa which is like a decimal. The e defines the length of the exponent which is like an integer.)

String

String (len)

 

0,255

XMLEmpty

 

__

XMLAny

 

0,255

Very large object

XMLAny

 

0,255

1 Both data types, Double (m,e) and Double (p,s) must be merged together to support XML standard.

The following table displays how input numbers transform into output numbers for an XML Business Document. For additional information, see Set node attributes values.

Input
value
DML
class
DML
data
type
Pattern Definition Analyzed
value
Output value
expected when
using analyzed
value
+12.1 R - Real number Decimal (p,s) 3,2 12.1 012.10
-12.1 R - Real number Decimal (p,s) 3,2 -12.1 -12.10
12.1 R - Real number Decimal (p,s) 3,2 12.1 012.10
1.12 R - Real number Decimal (p,s) 3,2 1.12 001.12
-1.12 R - Real number Decimal (p,s) 3,2 -1.12 -01.12
+1.12 R - Real number Decimal (p,s) 3,2 +1.12 +01.12
1.231 R - Real number Decimal (p,s) 3,2 1.231 Error; no output.
The scale is greater
than the definition.
123.2 R - Real number Decimal (p,s) 3,2 123.2 Error; no output.
The scale is greater
than the definition.

Related topics

Business Document types

Define XML Business Documents

Business Document structure

Business Documents

Related Links