<xml:set>
Set new xml variable
Use the Xpath expression to get the value of xml, and set it a new variable
select(required) The XPath expression to get the value of xml
var(required) Set new variable
setScope(optional) Set the scope of the variable Property context:Set variable to context(default) session:Set variable to session
value(required) Get variable value, can also get the Ognl values of the variable Optional value "str":String {"e1","e2","e3"}:List #{"key1":"value1","key2":"value2"}:Map
valueScope(optional) The scope of the variable Property context:Get variable from context(default) session:Get variable from session
In the select, use the Xpath expression to get the value of xml, and in the var, set a new variable
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 $.
Result
Tip: When we input in select, you can find the structure of xml.