Why use XML

xiaoxiao2021-03-06  18

Why use XML

This article discusses the standard format using the "Scalable Markup Language (XML)" as data. It outlines what XML is, what it produces and why it is a very valuable and benefit of representing and exchange data.

Why use XML?

Web allows us to communicate with anyone else. Widely accepted standards (which is critical to completely using the potential of the Web) allows the Web to communicate on a variety of interactive technology. An important layer is a visual display and a user interface, such as an existing standard such as HTML, GIF, and JScript (TM). These criteria allow for creating a page and displays many recipients at different times.

Although visualization and user interface standards are necessary, they are not sufficient to represent and manage data. Currently, Internet is just a visiting media of text and images. There is no smart search, data exchange, adaptive representation, and personalized standards. The Internet must exceed the limitations of setting information access and display standards. The Internet must set information understanding standard (general way to represent data) so that software can better search, move, display, and process information hidden in the context. Since HTML is a format that describes how to represent a web page, HTML cannot complete the above processing; HTML does not represent data. For example, HTML cannot:

Provide the doctor to send the prescription to the pharmacist. Allow the pharmaceutical laboratory to post statistics with all recipients can analyze. Take electronic payment with all recipients that can decode and process. Provide standard ways to search all litigation documents on a topic in the Law Library. Specifies what kind of information in the company directory in order to place the salesperson to work offline, display the directory to the customer, accept the order and upload these orders in standard format.

In short, although HTML provides rich tools for display, HTML does not provide any standard management data.

Just a few years ago, the HTML standard used to display the Internet, and the data display criteria will also extends the Internet. The data standard will be a business transaction, an published tools that publish personal favorite profiles, automatic collaboration, and data sharing. Medical records, pharmaceutical research data, semiconductor components, and purchase orders will be written in this format. This will create a lot of new uses, which are based on standards that move structural data on the web, just as it is easy to move the HTML page in the current mobile HTML. The data standard is an XML and an XML extension.

What is XML?

XML is a meta-labeled language that provides a format that describes structural data. This helps more accurately declare the content, which is convenient for more meaningful search results of multiple platforms. In addition, XML will use a new generation of web-based data to view and process applications.

Data structure representation

XML provides structural representation of data that can be widely performed and easy to configure. XML is a subset of SGML defined by the World Wide Web Association (W3C) (W3C), XML ensures that structural data is consistent and independent of the application or supplier. The resulting interoperability is starting a new generation of business and e-commerce web applications.

XML provides data standards that can encode various situations (from simple to complex) content, semantics, and architectures, can be used to label the following objects:

Ordinary documentation. Structure records such as appointment or purchase orders. Objects with data and methods, such as Java objects, or persistent forms for ActiveX controls. Data records such as the result set of queries. Component content related to the web site, such as "Channel Definition Format (CDF)". Graphics representation, such as the user interface of the application. Standard architecture entities and types. All links between the information on the web and the user.

Once the data is on the client desktop, you can process, edit, and represent it in multiple views without returning to the server. Due to lower computational quantities and bandwidth load, the current server is easier to upgrade. In addition, data from different sources can be combined due to XML format exchange data. XML is quite valuable for Internet and large enterprises, which is due to XML to provide flexible, open, standard format interoperability, and has new ways to access legacy databases and transfer data to web clients. You can generate an application faster, the application is more easier to maintain, and multiple views can be easily provided on the structure data.

XML documentation

XML is a text-based format that is designed to store and transfer data in many ways. The XML source is composed of XML elements, each XML element includes a start tag (), an end tag (</ Title>), and information between two tags (called content). Like HTML, the XML document holds text that utilizes tag annotations. However, unlike HTML, XML allows unlimited marking sets, and each marker set does not represent how it is displayed, but it indicates its meaning. For example, the XML element can be marked as price, order number, or name. What data is used by the author of the document and which tag name is most appropriate.</p> <p>It is easy to create an XML document. If you are familiar with HTML, you can quickly learn to write in XML format. In this example, the weather forecast can be described using XML, and the file can be saved with XML, such as Weather.xml.</p> <p><weather-report></p> <p><Date> March 25, 1998 </ date></p> <p><Time> 08:00 </ Time></p> <p><Area></p> <p><city> Seattle </ city></p> <p><State> Washington </ state></p> <p><Region> West Coast </ region></p> <p><Country> United States </ country></p> <p></ area></p> <p><measurements></p> <p><Skies> Local Cloudy </ Skies></p> <p><Temperature> 46 </ Temperature></p> <p><wind></p> <p><Direction> Southwest </ Direction></p> <p><windspeed> 6 </ windspeed></p> <p></ wind></p> <p><h-index> 51 </ h-index></p> <p><humidity> 87 </ humidity></p> <p><Visibility> 10 </ Visibility></p> <p><UV-INDEX> 1 </ UV-INDEX></p> <p></ measurements></p> <p></ weather-report></p> <p>Each marker represents the meaning of each data item (whether it is <Date> Element, <Region> Element, etc.), and does not describe the order and form of display data. All recipients of this data can decode the document for their own specific purpose. For example, someone can use this information to develop the scheme of the day, while meteorological researchers can use them as a history of Seattle.</p> <p>Scalable function</p> <p>You can define an unlimited tag set in XML. Although the text can be displayed in a bold or slope, XML can provide a frame for marking the structure data. XML elements can declare their associated data as retail prices, business tax, book name, rainfall, or any other needed data elements. As the entire organization and other users on the Internet use XML tags, the corresponding capabilities of searching and processing data will appear, regardless of how the data is found. Once the data is positioned, you can transmit and display in a browser in a variety of ways, or transferred to other applications for further processing and viewing. The tag represents a piece of data. Typically, it corresponds to a field in a table. However, this is not necessary. The tag can be a computational column (price multiplied). There is no reason to think an XML file represents all the data in a table. As usually, XML will represent query results including many tables. As long as the application can get the meaning of the data in XML, where the data is from and how the data arrives at the XML file is not important.</p> <p>Data is separated from representation and processing</p> <p>The advantage of XML is that it maintains separation between user interfaces and structural data. HTML specifies how to display data in the browser, and XML defines content. In HTML, use the marker to display the data in a bold or slope; in XML, only the mark is used to describe data, such as urban name, temperature, and air pressure. In XML, the data in the browser is indicated by style sheets such as "Extended Style Language (XSL)" and "Stacking Style Table (CSS)". XML separates the data from representation and processing, allowing you to display and process data by applying different styles and applications.</p> <p>Separate data from the representation to seamlessly integrate data of many sources. User information, purchasing order, research results, bill payment, medical record, directory data, and other sources can be converted to XML on the intermediate layer to exchange data easily like HTML page display data. You can then transfer data encoded on the web to the desktop on the Web. This feature does not need to be changed for the legacy information stored in large databases or documents, and this feature does not need to be changed since HTTP transmits XML on the network.</p> <p>Self-description of XML data</p> <p>In XML, "Document Type Definition (DTD)" can be accompanied by a document, and the document type definition is substantially defined in the rules of the document, for example, which elements can be displayed and the structural relationship between elements. DTD will help verify the data when the receiving application has an internal description of data. However, in XML, DTD is optional.</p> <p>The data sent with DTD is called effective XML. At this point, the XML syntax analyzer should correct incoming data to the rules defined in the DTD to ensure that the data is properly constructed. The data that is not sent with the DTD is called the structure of XML. Here, an XML-based document instance can be used, such as the hierarchy meteorological data displayed above, can be used to imply itself.</p> <p>For effective XML and well-structured XML, XML encoded data is described, which is because the description marks and data are mixed. XML uses open, flexible format, and XML can be used in any way to exchange and transfer information, which makes XML functions more powerful.</p> <p>For example, you can use XML to describe information about the HTML page, or use XML to describe objects contained in business rules, such as invoices, purchase orders, and order. Since XML is separated from HTML, XML can be added to the HTML document. W3C defines a format. According to this format, XML-based data or XML data island can be encapsulated into the HTML page. By embedding the XML data island into the HTML page, multiple views can be generated based on the transmitted data. In addition, XML enforcement applications, such as distributed printing, database search, and other programs. Architecture</p> <p>The architecture is a formal size of the XML document rules, that is, element names, which elements that are allowed in documents, and which combinations are allowed. Such as the new architectural language defined in the XML Data Working Group (English), the "XML Data and Document Content Description (DCD)" in line with W3C is recommended to provide the same functions as DTD. However, these architectures are scalable, so developers can expand them with additional information (such as those data types, inheritance, and presentation rules). This makes these new architectural languages ​​more powerful than DTD.</p> <p>In addition to XML data and DCD, Microsoft and other companies also recommend the vocabulary of the XML document architecture with XML themselves. This allows XML data to describe its own structure. The architecture of the XML has added huge energy to the XML format because it makes the software that checks some data to understand its structure, without any description of any prior built-in data structure.</p> <p>Using the architecture, the author is just what kind of element name that allows for the document, and what kind of sub-elements, properties, and relationships that are allowed in each element. The authors can introduce a piece from other architecture and extend the type by inheritance. Thus, while retaining the simultaneous expression of the vocabulary tree, the complex relationship between elements is also allowed.</p> <p>The author can invent their own architecture, or the architecture created by the shared author. The reader can check whether the schema reference to verify that the type of document has been correct is correct. They can also use the information in the architecture to move the structure of the document.</p> <p>To use XML companies, you need a simple way to find information on architectures, documents, and corporate processes supported by other companies and applications. Imagine the huge cost of consumers to pay, equivalent to each company to define the way it own issues. Even the cost of establishing and maintaining the Web site is also exceeded by some companies. There are countless companies that can post their information, but lack how to use security, controllable ways to publish this information, which will make thousands of different implementations, navigation methods, and content depths. The cost burden of this "confusing" state is willing to affect consumers.</p> <p>Microsoft has chosen to maximize this issue by creating and managing www.biztalk.org (English). This site will grow into positioning, managing, learning, and publishing the gate of XML, XSL, and information models in thousands of applications. The architecture of the full-featured online warehouse plan is delivered in the early autumn of 1999.</p> <p>Open standard</p> <p>XML is based on the proven, technical standards optimized for web. Microsoft is working together with other big companies and W3C Research Group to ensure the interoperability and support of developers, authors and users working on multi-system and multi-browser, and constantly strengthen XML standards.</p> <p>XML is composed of the following relevant standards:</p> <p>Scalable Markup Language (XML) is a "suggestion", the final stage of the W3C approval process. That is to say, this standard is stable and is warmly welcomed by Web and tool developers. XML Namespace (English) is a "suggestion" that describes the syntax of the namespace and supports the namespace approved XML analysis program. Document Object Model (DOM) Level 1 (English) is a "suggestion" that provides a standard for structural data in the script that enables developers to interact with XML data-based computers. Scalable Style Sheet Language (XSL) (English) is the current draft of work. XSL consists of two modules: "XSL conversion language" and "XSL formatted objects". The conversion language can be used to convert XML for display. Because the two parts of XSL are modules, the conversion language can be used independently in the transformation of general purpose, including converting XML to format better HTML. CSS can be used for XML data of simple structure, but information can only be displayed in the sequence of reception. XML Link Language (XLL) (English) and its partner XML Pointer Language (English) is a draft of the current work. XLL is an XML link language that provides links in XML, similar to links in HTML, however more functions. With XLL, the link can be multi-directional, and the link can exist in the object level, not only on the page level. Internet Explorer 5 does not support XLL. XML structured architecture, such as XML Data Note (English) and XML Document Description (DCD) (English), which is described in the W3C XML Data Working Group (English).</p> <p>Benefit from XML</p> <p>XML brings powerful features and flexibility to web-based applications, providing developers and users with a number of leading advantages:</p> <p>More meaningful search development flexible web application</p> <p>Different sources of data integration local data calculations and operation multiple data view granular updates</p> <p>More meaningful search</p> <p>Data can use XML to make unique tags, potentially allow customers to specify the books of Winston Churchill, not written by Winston Churchill. The difference is that using the current method to search, it is possible to find two books mixed together. Do not use XML, you need to search the application to understand the architecture of each database, this architecture describes how the database is constructed. In fact, this is impossible because each database describes its data. Use XML, books are easy to use a standard method, classified according to authors, book names, international standard book numbers or other criteria. The agent then uses a consistent method to search on the book on Winston Churchill on the identified bookstore site.</p> <p>Flexible Web application development</p> <p>After finding the data, you can handle the XML to other applications, objects, and intermediates, or send them to the desktop, view in your browser. XML, along with HTML for display, provides a desired technique for flexible Third-level web application development from the HTML for display, for logic, and a general object model for interaction with the data.</p> <p>Data integration of different sources</p> <p>Search for multiple, incompatible databases, it is not possible to present. XML enables structural data of different sources that are easy to combine. Software agents can be used to integrate data from backend databases and other applications on the intermediate layer server. This data is submitted to the client or other server, making the next step aggregation, processing, and distribution.</p> <p>XML scalability and flexibility enables it to describe the data contained in various types of applications, which are available from the collection of web pages to data records. In addition, since XML-based data is described, it is possible to exchange and process data without the description of built-in incoming data. Local calculation and operation</p> <p>After the data in the XML format is submitted to the client, the data can be analyzed using the calculations performed by the client application and edit and operate locally. Users can not only display data, but also manipulate data. "XML Document Object Model (DOM) also allows you to use scripts or other programming language operations. Data calculations can be performed with data transmission between the servers. Separate the user interface and the data itself of the data itself, so that the powerful application that can only be found on the high-end database, you can naturally create simple, flexible, open formats, for web.</p> <p>Multiple data views</p> <p>After the data is passed to the desktop, you can view different ways. The XML supplements HTMLs widely used to describe the user interface by using simple, open and scalable ways to describe the HTML that is widely used to describe the user interface. In addition, HTML describes the appearance of data, while XML describes the data itself. Since the data separation is now displayed, the data defined using XML can specify a plurality of different views to make the data better display. The display method of local data can be determined based on client configuration, user preferences, and other guidelines. CSS and XSL provide an illustrative mechanism describing a particular data view.</p> <p>Granular update</p> <p>Data can be updated using XML granularity, each time some data is changed, no need to send a complete structured dataset. Only the changed element is sent from the server to the client, and the changed data can be displayed without refreshing the entire user interface. Now, even if the view remains unchanged, only one data item is changed, the entire page must also be rebuilt. This seriously limits the scalability of the server.</p> <p>Similarly, XML allows addition of other data, such as the highest and lowest temperatures of forecasts, expected rainfall and probability (by percent). This additional information will flow into the user's existing view without using a browser to send a new view. If other information (such as atmospheric pressure) can also be required, you can send it without reconstruction.</p> <p>prospect</p> <p>As an industry standard that expressing structured data, XML provides many advantages to organizations, software developers, Web sites, and end users. With the more advanced market data format of important markets (such as senior database search, online banking, medicine, law, e-commerce and other fields), this opportunity will further increase. It is a good opportunity when the site is not only to view the data but also to assign data.</p> <p>Currently, customer service is moving from call center and physical location to the Web site, so it will benefit from XML power. Second, because most business applications involve the transmission of data and database records, such as order, invoices, customer information, dating, map, etc., XML will perform a large number of business applications on the Internet, which greatly changes the possibility of end users. Best. In addition, information on the Web site, whether in the existing document, or in the database, you can use XML-based, intranet-oriented vocabulary. These vocabulary are also very helpful for small and medium-sized companies that need to exchange information between customers and suppliers.</p> <p>An important, market-developed market is to facilitate the development tools for end users to build their own collaborative Web sites, including tools that generate XML data from legacy database information and existing user interfaces. In addition, standard architectures describing a briefclock or other data should be developed, for example, it should be able to use other features of the typesetting, chart, and Excel. Description of XML generated from legacy databases and visual tools are very good opportunities. Custom tools for XML data can be written using the Visual Basic® development system, Java and C . XML requires powerful new tools to represent rich, complex XML data in document. This can be achieved by maping the user-friendly display layer to the top layer of a dynamically changed complex hierarchy data set. The layout of XML data may be used, including folding grading, pivottable dynamic view, and simple table of each briefclip.</p> <p>Web sites can provide stock market, news or real-time traffic data. These data can be obtained by filtering the server tree of these sites by filtering Web broadcast or intelligent polling. Using XML can avoid information overloading, the method is to write custom rules to process outdated information in email. XML-based, user constructs tools for these rules, as well as servers and client software running these tools, is an excellent huge market. "Standard Object Model" enables these functions, which are usually written in the script, configured to filter incoming messages, check the stored messages, create mail, access database, and so on. These agents can be written to automatically run anywhere.</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-42108.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="42108" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.044</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = '1emwN5zosNkIa52C9sj5qLwJqs7lQ4M23ySRSEPygCqvlBs7xfNdxBvSPJIFTxzSEK_2FQOMw_2BJurwDgNGAjSmZQ_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>