Model Structure - Xml


Catalog:


Example:


xml structure

xml model structure

The xml model simply records the path to the xml file and does not save the xml content as a separate data. When the content of the xml file changes, the data will also be changed.

xml usage

In the template, use <xml> tag get model.

<xml> has 2 attributes:

This is a xml file

We transform it to model

(How to transform the xml model, please read: transform xml model)

In the template, we select this model to find the xml model

If the model group is selected, the xml tag need to specify relation

If the model is selected, the xml tag does not need to specify relation

About the usage of xml tag, please read: xml tag

We use select to output some elements, the format must begin with $.

Template

Result

Other tag to be used: