SoFunction
Updated on 2025-03-02

Frequently Asked Questions about Getting Started with XML (I)

Author: AngelGavin Source: CSDN

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 computing and demonstration. XML allows creating unique data formats for a specific application. It is also an ideal format for transferring structured data between servers.

What is MSXML?

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

What can Microsoft XML analyzer do?

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

A document object model (DOM)-based analyzer that takes a stream of text (a file that can be converted to XML, a string in a program, or any other text) and converts it into a navigable XML tree structure that can be programmed.

SAX (Simple API for XML) parser, which is optimized for handling large documents and high throughput. SAX is an event-based analyzer that reads documents and reports analysis events (such as the beginning and end of an element) directly to the application. User-created applications implement handlers that handle different events, which is very similar to handling events in a graphical user interface (GUI).

The XSLT processor reads the XSLT file and applies instructions for the Extensible Stylesheet Conversion Language (XSLT) file to the XML file to produce certain types of output. In addition to creating XML structures, the XSLT processor can also perform a certain amount of optimization on the resulting XSLT filter, and, from a technical point of view, it is more like a compiler.

Verify that the analyzer reads the document type definition (DTD) or XML schema, and then checks that the actual document is formatted correctly and does not contain data that conflicts with the schema. Note that for schemas only, the verification schema will return the schema itself as an object, which can be referenced later when an option is created in the HTML list box.
All four features are included in the same MSXML library package, which is available for free from the MSDN XML Developer Center (English).

What is the difference between MSXML, MSXML2 and MSXML3?

XML has gone through many recurrences over the past three years, so it is not surprising that there are different versions of Microsoft XML parsers available at present. Internet Explorer 4.0 includes earlier versions of XML parser, which is earlier than XSL, XML data, or most other XML technologies (and has completely different DOM models). This earlier version of the analyzer is included in the library. The analyzer can be upgraded to a newer one from the MSDN XML Developer Center (English).

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

Can XML replace HTML?

XML provides greater flexibility than HTML, but it cannot replace HTML anytime soon. In fact, XML and HTML work well together. Microsoft hopes that many authors and developers can 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 computing. The data passed to the desktop can be calculated locally. The XML parser can read the data and hand it over to a local application (such as a browser) for further viewing or processing. Data can also be processed by scripts or other programming languages ​​using XML object models.

Provide the user with the correct structured data view. The data passed to the desktop can be represented in a number of ways. Local data sets can be dynamically expressed to users in an appropriate form according to factors such as user preferences and configuration.

Allows integration of structured data from different sources. Generally speaking, a proxy is used to integrate data from the backend database and other applications on the intermediate layer server, so that the data can be passed to the desktop or other servers for further aggregation, processing and distribution.

Describes data from multiple applications. Because XML is extensible, it can be used to describe data from a variety of applications, from describing collections of web pages to data records. Since the data is self-describing, it is possible to receive and process data without the built-in description of the data.

Improve performance through particle size updates. XML allows granular updates. Developers don't have to send the entire structured dataset every time there is a change. With granularity updates, only the changed elements must be sent from the server to the client. The changed data can be displayed without having to refresh the entire page or table.

Is XML only available to core developers?

No. Like HTML documents, XML documents can be created by anyone—even people without any programming experience. XML is just a standard way to describe information. Furthermore, it is also a language that can be written without any software. You can write XML documents in a text editor and put them directly into the web site without writing 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 the XML document and make its contents 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 HTML pages. To create a full form of XML application, use a programming environment such as Microsoft? Visual Studio?

Are there any practical examples of how to use XML?

XML is used in an astonishing number of applications, ranging from Web site creation and documentation to database integration and distributed programming. XML has its place in the following fields:

Service-to-service transmission. Business data (invoices, purchase orders, accounting and tax information, etc.) are electronically transmitted between manufacturers in XML format. Compared to the old Electronic Data Exchange (EDI) format, XML offers many advantages, not just the ability to convert from one invoice format to another in transit.

Distributed programming. XML is an ideal complex multi-platform application construction solution, which enables integration of Windows servers and other operating systems.

Web site architecture. Due to the hierarchical and distributed nature of XML, Web site developers are increasingly using it in the overall architecture and navigation structure of their Web site. In addition, more and more directory and index tables, XML structures that track user information and Web site status, HTML-based components and channels for processing data flows are written in XML and XSLT.

Database operations. XML is becoming a popular tool for interacting with databases—whether retrieve XML datasets from SQL queries or update databases with XML records. And we also have the advantages of separation. By compressing the data into SML, there is no need to know any knowledge of the actual database structure.

Document management. Most companies are trapped in the ocean of paperwork and will get worse. XML is increasingly used to encode documents into XML, making documents easier to retrieve or provide comment contexts linked to documents for more efficient 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 "accessible anywhere" Internet services, and XML is the logical medium that handles anything from data access to representation of data in that new environment.

Does Microsoft Internet Explorer 4.0 support XML?

Yes. Internet Explorer 4.0 supports the following XML functions:

A common XML parser that reads XML files and passes them to an application (such as a viewer) for processing. Application developers can use two parsers for Microsoft: Microsoft XML parser in C++ and Microsoft XML parser in Java.

XML Object Model (XML OM) Using the World Wide Web Consortium (W3C) standard document object model (DOM) allows programs to access structured data through an XML parser, giving developers the ability to interact and compute data. For more information, see the DOM specification (English).

XML Data Source Object (XML DSO) allows developers to connect to structured XML data and provide it to HTML pages using dynamic HTML's data binding mechanism.