Frequently asked questions in XML (i)

Source: Internet
Author: User
Tags format object end sql object model version versions access


General questions



What is XML?



Extensible Markup Language (XML) is a common language for data on the WEB. It enables developers to pass structured data, from many different applications to the desktop, for local computations and demonstrations. XML allows you to create a unique data format for a particular application. It is also the ideal format for transferring structured data between servers.



What is MSXML?



MSXML is a Microsoft software component that provides core XML services.



What can the Microsoft XML parser do?



The latest version of the Microsoft Core XML service offers the following four different features.



A parser based on the Document Object Model (DOM) that can get a text stream (a file that can be converted to XML, a string in a program, or any other text) and convert it into a navigable XML tree structure that can be programmed to work.



The SAX (simple APIs for XML) parser, which is optimized for handling large documents and high throughput. SAX is an event-based parser that reads documents and reports analysis events, such as the start and end of an element, directly to the application. The user-created application implements handlers that handle different events, which is very similar to handling events in the graphical user interface (GUI).



The XSLT processor reads the XSLT file and applies the directives of the Extensible Stylesheet Translation Language (XSLT) file to an XML file to produce some type of output. In addition to creating an XML structure, the XSLT processor can perform a certain amount of optimization on the resulting XSLT filter, and it is more like a compiler from a technical standpoint.



The validation parser reads the document type definition (DTD) or XML schema, and then verifies that the resulting document is in the correct format and does not contain data that conflicts with the schema. Note that for schemas only, the validation schema returns the schema itself as an object that can be referenced later when an option is created in an HTML list box.



All four features are included in the same MSXML library package and can be obtained free of charge from the MSDN XML Developer Center (English).



What is the difference between MSXML, MSXML2, and MSXML3?



XML has undergone many iterations over the past three years, so it is not surprising that there are currently different versions of the Microsoft XML parser. Internet Explorer 4.0 contains an earlier version of the XML parser, which is much earlier than XSL, XML data, or most other XML technologies (and a completely different DOM model). This earlier version of the parser is included in the MSXML.dll library. From the MSDN XML Developer Center, you can upgrade the analyzer to a newer one.



We strongly recommend that you upgrade to the new analyzer because it is much more powerful. Internet Explorer 5.0 includes the MSXML 2.0 parser, which contains the basic versions of XSL and XML schemas. MSXML2 is the parser version that is included with SQL Server 2000. MSXML2 contains a number of performance-enhancing features, and improves performance and scalability overall. MSXML3 is the version that is currently included as a "Technology Preview." MSXML3 includes XSLT and XPath support and SAX interfaces.



Can XML replace HTML?



XML offers more flexibility than HTML, but it's unlikely to replace HTML quickly. In fact, XML and HTML can work well together. Microsoft expects many authors and developers to be able to use both XML and HTML, such as using XSLT to generate HTML.



What are the benefits of adding XML to HTML?



The benefits of using XML on the Web are:



It provides data for local calculation. Data that is passed to the desktop can be calculated locally. The XML parser can read data and submit it to a local application (such as a browser) for further viewing or processing. Data can also be handled by scripts or other programming languages that use the XML object model.



Provide the right structured data view to the user. Data passed to the desktop can be represented in a variety of ways. local datasets, which can be dynamically presented to users in the view in the appropriate form, depending on user preferences and configuration.



Allows the integration of structured data from different sources. Typically, you use proxies to integrate data from back-end databases and other applications on a middle-tier server so that it can be passed to the desktop or other servers for further aggregation, processing, and distribution.



Describes data from a variety of applications. Because XML is extensible, it can be used to describe data from a variety of applications, from a description of a Web page to a  records. Because the data is self-describing, it does not require a built-in description of the data, but also the ability to receive and process data.



Improve performance with granular updates. XML allows granularity updates. Developers do not have to send the entire set of structured data every time they have a change. With granular updates, only the elements that are changed must be sent from the server to the client. The changed data can be displayed without having to refresh the entire page or table.



Does XML apply only to core developers?



No. As with HTML documents, XML documents can be created by anyone-even people without any programming experience. XML is just a standard way of describing information. In addition, it is a language that can be written without any software. You can write XML documents in a text editor and put them directly into your Web site without having to write any code in the traditional way.



What do you need to start using XML?



To use XML, you need an XML parser that can read XML documents and enable its contents to be processed. Microsoft provides an analyzer that can be downloaded from the MSDN XML Developer Center (English).



To use an XML document, you can use a text editor, such as Notepad, or any other editor that can be used to create an HTML page. To create a full form of an XML application, use such as Microsoft? Visual Studio? Programming environment.



Is there a practical example of how to use XML?



XML is being used in a staggering number of applications, ranging from WEB site creation and documentation to database integration and distributed programming. In the following areas, XML has its application:



The transport of business to the business. Business Data (invoices, purchase orders, accounting and tax information, etc.) are transmitted electronically among vendors in an XML format. Compared to the old electronic Data Interchange (EDI) format, XML offers a number of advantages, not just the transition from one invoice format to another in transit.



Distributed programming. XML is ideal for complex multi-platform application constructs, which makes integration of Windows servers and other operating systems possible.



WEB site architecture. Because of the hierarchical structure and distributed nature of XML, Web site developers use it more and more in their Web site's overall architecture and navigation structure. In addition, an increasing number of catalog tables and index tables, XML structures that track user information and the state of WEB sites, html-based components, and channels for processing data streams are written in XML and XSLT.



Database operations. XML is becoming a popular tool for interacting with databases-whether retrieving an XML dataset from an SQL query or updating a database with an XML record. And we also have the advantage of separation implementation. By compressing data into SML, you do not need to have any knowledge of the actual database structure.



Document management. Most companies are now stuck in the ocean of paperwork and getting worse. XML is increasingly used to encode documents into XML, making it easier to retrieve or provide an annotation context that is linked to a document for more effective reference.



Can I ignore XML?



If you want to compete in the Internet world, you can't ignore XML. XML is a language that leads to schema transfer in the way we consider programming itself. Traditional dedicated client/server applications are giving way to the "Anywhere access" Internet service, and XML is the logical medium for handling everything from data access to performance data in that new environment.



Does Microsoft Internet Explorer 4.0 support XML?



Yes. Internet Explorer 4.0 supports the following features of XML:



A generic XML parser that reads XML files and passes them to an application, such as a viewer, for processing. Application developers can use Microsoft's two parsers: Microsoft XML parsing in C + + and the Microsoft XML parser in Java.



The XML object model (XML OM) uses the world Wide Web Consortium Standard Document Object Model (DOM) to allow programs to access structured data through an XML parser, giving developers the ability to interact and compute data. For more information, see DOM Specification (English).



XML Data source objects (XML DSO) allow developers to connect to structured XML data and provide it to HTML pages with Dynamic HTML data-binding mechanisms.







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.