Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Appendix L XML Conversion Function Mapping Rules

L.1 Mapping Rule File Definition Format

Mapping rules are marked up as XML, using the following tags:

[Table L-1 Tags used in Mapping Rule File]

Tag name

Description

Multiple use

Required item?

Remarks

MappingRule

This tag is the highest order tag of all the mapping rule tags.

No

Required

-

parentRule

Specifies rules relating to parent elements.

Yes

Required

Hereafter, rules defined by the parentRule tag are referred to as 'parent rules'.

columnRule

Specifies rules relating to items.

Yes

Optional

Hereafter, rules defined by the columnRule tag are referred to as 'column rules'.

attributeRule

Specifies rules relating to attributes.

Yes

Optional

Hereafter, rules defined by the attributeRule tag are referred to as 'attribute rules'.

documentRule

Specifies rules when no XML declaration is defined for the data to be output in XML documents.

No

Optional

Hereafter, rules defined by the documentRule tag are referred to as 'document rules'.

extensionRule

Specifies rules relating to additional information.

Yes

Optional

Hereafter, rules defined by the extensionRule tag are referred to as 'extension rules'.

Tag Consolidation

When the XML conversion function converts records from the ResultSet object to XML documents, multiple elements with the same hierarchical structure can be grouped under a common parent element. This process is called 'consolidation'.

Do not use characters that cannot be used with XML tags or attribute names when setting the tagname and attrname attributes of the columnRule or attributeRule tags. Otherwise, the XML documents output will not be well-formed XML, and could not be used as an input file for Shunsaku.
If characters that cannot be used in XML tag names and attribute names are used in the column names, the column names cannot be used as XML tag names and attribute names. In this case, the tagname attribute name of the columnRule tag and the attrname attribute name of the attributeRule tag must be specified.

DownL.1.1 MappingRule
DownL.1.2 parentRule
DownL.1.3 columnRule
DownL.1.4 attributeRule
DownL.1.5 documentRule
DownL.1.6 extensionRule

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006