Operate a schoolbag that introduces an XML file

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.