Light Open platform a very important feature is to simplify the operation of the XML file, you can easily introduce XML files, positioning to any node, delete attributes and text, and the node itself, let's use an example to describe the operation of XML
To introduce an XML file:
<chtml><we>@{_samples/test.xml:e}</we></chtml>
Or
<we>@{_samples/test.xml:HtokID=e0}</we>
The first time in the page with a schoolbag expression to the name of the XML file bag value, the system will automatically introduce the name of the XML file, and return a file name named Schoolbag, the keyword (as in this example, e) becomes the first character of the node number, the node will press E0 , e0.x, e0.x.x ... Rules are automatically numbered. The current node is at the root node (that is, the e0) Location
e-commerce Web site with light openingorganization management function module in the Department information file (base/xml/deptshow.html) into the department's XML file (Base/dept.xml)
<we>@{@{ppage:file}:[email protected]{ppage:htokid}}</we>
Department's XML File (base/dept.xml) node information (that is, departmental information)
<table width= "99%" cellpadding= "0" cellspacing= "0" border= "1" bordercolor= "#b4b4b4" Align=center><tr height= "Class=bg0><th width=" valign= "Middle" > Name </th><td>@{@{pPage:file}:weName}</td> </tr><tr height= "class=bg0><th> notes </th><td>@{@{ppage:file}:D ept}</td>< /tr></table>
Effect
Open the file and look at it, please pay attention to backup OH
Download and description of light-open platform resources
Platform and Latest development Manuals free Download: http://download.csdn.net/detail/tx18/8464425
Development example: Light Open e-commerce website , free download: http://download.csdn.net/detail/tx18/8318585
Light open platform will be upgraded to provide you with more powerful and easy features, please pay attention to Download the latest version
Operate a schoolbag that introduces an XML file