xml - Xml model

<xml>

Set the new variable to a xml model.

Introduce

Only one model can not specify relation, 
and multiple models are specified by relation.

Attribute

var(required)
Set the new variable to a xml model
name(optional, deprecated)
Name of the xml model (specified by name)
Deprecated! suggested specified by relation
relation(optional)
Relation of the xml model (specified by relation)

Example:

Usage

There are 3 types of models that come from database, java class, and xml file.
<xml> tag can get the model from the xml file, <entity> tag can get the model from the database and java class.

Xml has 2 usages:

Xml file content

Get some of the xml elements value.

Result: