One of the applications of XML in the development of BS

zhaozj2021-02-12  155

The application of XML in BS development in this series of articles, the author doesn't plan to perform XML grammar and its document structure, and the length of the BS development, I hope to read the readers of this series of articles have a certain XML and BS development basis. . And this series of articles are based on IE5.0 and its above version browser. Service technology is generally asp, JSP as an example.

First, combined with the SELECT label usually we are developing in BS, there is more place to use the SELECT tag (browser control) to do type or parameter selection, usually we want to make an openness and scalability comparison Strong applications do not write these types or parameter selection items. So there is often an array or querying the database, using a loop to handle this type. Here I want to introduce the application of XML technology to achieve flexible extension. The following is to describe how to describe the way of managing: First, we have two ways to organize an XML document. One is static, such as directly writing a nativeplace.xml file; another is to dynamically generate an XML page dynamically in ASP or JSP. The following is as an example, the NativePlace.xml document content is as follows Hunan Hubei The label in this, uses Items and Items that violate XML ideas, XML is a self-expressed data archive file, that is, see the label in XML can be Know what is stored. I want to make a universal mechanism in this html, there is no need to modify it in HTML. Let's take a look at how it is used in HTML. ... we define a SELECT control and an XML label, the latter is here a data island.

转载请注明原文地址:https://www.9cbs.com/read-6698.html

New Post(0)