Base XML commands
Introduction
XML configuration files are extensively used to define interfaces and commands in Commerce Manager.
The following commands are available:
- Add
- Remove
- Clear
- Set
- setAttributes
The commands are described in more detail below.
Command descriptions
Add
Adds included node to the resulting XML. Use attributes beforeId and afterId to add a node into a specific place in the XML.
<add afterId="Core_System">
<Link id="Core_CatalogSystem" text="test afterId" order="20" iconUrl="" iconCss="treeIcon" command="cmdCatalogSystemLink">
</add>
Remove
Removes a node with a specified ID from the resulting XML.
<remove nodeId="Core_CatalogSystem" />
Clear
Removes all currently existing nodes from the resulting XML.
Set
Changes the parent element in the resulting XML.
<set name="property_name" value="property_value" />
setAttributes
Changes a set of attributes for the parent element in the resulting XML. This command will modify/add attributes to the parent element. If the attribute already exists in the parent XML node, its value will be changed, otherwise a new attribute will be added.
<setAttributes attr1="value1" attr2="value2" />
Load order for XML files
It is possible to specify the order in which XML files are loaded. The order is defined in the web.config file in the mediachase.xmlTools section. You can only specify the order by modules/folders. The files inside the module/folder are loaded in random order.
<mediachase.xmlTools>
<modules>
<add name="Shell"/>
<add name="MetaDataBase"/>
<add name="MetaUI"/>
<add name="MetaUIEntity"/>
</modules>
</mediachase.xmlTools>
Do you find this information helpful? Please log in to provide feedback.
Last updated: May 28, 2015