CMS XML mapping configurations can be managed through the screen shown below:
You must specify the mapping configuration before parsing. The screen has a grid and a tree view where you can view the XML structure. The grid view is as shown below:
The grid contains the following columns.
-
Configuration Code: Enter the name for a particular mapping configuration.
-
Revision: Enter the revision number for the configuration.
-
Remarks: Enter the remarks or comments for the configuration.
-
Standard: Indicates if this mapping configuration is standard or not.
When the parsing is done, the XML structure is filled in the screen for the CMS XML mapping configurations. You must identify the XML elements corresponding to the CMS elements.
Separate CMS elements are available for structure and articles. CMS elements for structure end with _S. CMS elements for articles end with _A.
The following tables show the details for the CMS elements.
CMS Elements for Structure
CMS Translation |
CMS Element |
---|---|
NLS |
Specifies NLS notation. |
CLS_SYS_CD |
Specifies the class system. |
CLS_SYS_REV |
Specifies the class system revision. |
CLS_SYS_DESC_S |
Specifies the class system short description (also used as a class system long description). |
ALL_PROPS_ROOT |
Specifies the XML root element for the declaration of cumulative class properties. |
ALL_PROPS_CD |
Specifies the class property code (cumulative class properties). |
ALL_PROPS_LABEL |
Specifies the class property label (cumulative class properties). |
ALL_PROPS_HELP |
Specifies the class property help (cumulative class properties). |
CLASS_CD |
Specifies the class code. |
CLASS_DESC_S |
Specifies the class short description (also used as a class long description). |
PARENT_CLASS_CD |
Specifies the parent class code. |
CLASS_PROP_CD |
Specifies the class property code (with class data). |
CLASS_PROP_MANDATORY |
Specifies the class property's mandatory indicator. |
CLASS_PROP_DATA_TYPE |
Specifies the class property's data type. |
CLASS_DEP_PROP_NAME |
Specifies the class dependent property code (with class data). |
CLASS_DEP_PROP_VAL |
Specifies the class dependent property value (with class data). |
STRUCTURE ROOT |
Specifies the root element for structure. |
CMS Elements for Articles
CMS Translation |
CMS Element |
---|---|
NLS_A |
Specifies NLS notation. |
IDENT_CD_A |
Specifies the ident code. |
IDENT_NLS_A |
Specifies the ident NLS - short (also used as an ident NLS - long). |
ARTICLE_DTLS_ROOT_A |
Specifies the article root element, which consists of all the details of an article. |
CLS_SYS_CD_A |
Specifies the class system code. |
CLASS_CD_A |
Specifies the class code. |
CLASS_PROP_CD_A |
Specifies the ident property code. Although the data (in the XML file) is organized such that it appears that the ident properties are class dependent, for CMS, the ident properties are class independent. |
CLASS_PROP_VAL_A |
Specifies the ident property value. |
ARTICLE ROOT |
Specifies the root element for articles. |
The NLS/language notation mentioned in the XML file for the corresponding NLS must be added on the Languages screen (Administration > Languages) in Smart Materials application. Note that the NLS notation is case-sensitive. The NLS notation used in the Structure/Article xml files must be same as the one provided on the Languages screen.
You must map the XML elements with the CMS elements. After each element mapping, you must preserve the mappings and finally save them. As the CMS elements get mapped, the list in the selection list continues to reduce in size. If you want to revert or erase any specific mapping, first remove the CMS element (make it blank) and then preserve the removed mapping. Finally save it again. As mentioned earlier, the software can have separate mappings for structure and articles. Note that once a mapping configuration is done, it can be used for those XML files that are similar and have the same hierarchy of elements.
-
Drag the XML structure element from the left pane to the corresponding CMS element in the XML Element column.
-
To unmap, right-click the XML Structure element, and then click Unmap.
-
On double-clicking an XML element, the corresponding mapped CMS element is highlighted, and vice a versa.
-