Home Backend Development XML/RSS Tutorial Detailed introduction to XML document types

Detailed introduction to XML document types

Jun 11, 2017 pm 02:12 PM

Since XML can customize tags, the set of tags defined by each person will be different. If there is no set of standards to stipulate the definition principles of tags, the application cannot process XML documents. The solution to this problem is to use DTD, DTD (Document Type Definition, document type definition), which is used to define the writing rules of XML documents. Such as which elements can appear in the document, and the content and attribute requirements of the elements, etc. The application will use this DTD to verify the document. XML documents that comply with the DTD constraint rules are called valid documents and can be processed in the next step. Otherwise, an error will be reported. The application can capture the error and perform corresponding exception handling. The verification process is optional and depends on the specific application. To use a DTD for validity checking in a document type declaration, you must use a document type definition declaration to specify the DTD. For example: <?xml version="1.0" standalone="no"?> <!DOCTYPE portal&nbsp

1. XML document type declaration

Detailed introduction to XML document types

##Introduction: Since XML can be customized with tags, the set of tags defined by each person will be different. If there is no set of standards to stipulate the definition principles of tags, the application cannot process XML documents. The solution to this problem is to use DTD, DTD (Document Type Definition, document type definition), which is used to define the writing rules of XML documents.

2. The semantics of XML tags

Detailed introduction to XML document types

Introduction: Although the XML document type definition provides a mechanism for describing the syntax of the XML language in a machine-readable form, there is currently no similar mechanism for specifying the specific semantics of the XML vocabulary. This means that there is no way to explain the meaning of XML tags, and the facts and relationships presented in XML cannot be clearly, comprehensively and normatively defined

3. The combination of JSP and XML_ MySQL

Introduction: Overview: eXtensible Markup Language (XML) is rapidly being used in the industry. It has become a platform-, language- and protocol-independent A widely used standard for formatting and exchanging data. XML and its auxiliary specifications can be used to describe the document representation of data, describe the limitations of XML document types, describe links between XML documents and resources, describe XML documents

The above is the detailed content of Detailed introduction to XML document types. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What are the limitations for modifying attribute values ​​in XML What are the limitations for modifying attribute values ​​in XML Mar 03, 2025 pm 05:32 PM

What are the limitations for modifying attribute values ​​in XML

Will XML modification affect performance? Will XML modification affect performance? Mar 03, 2025 pm 05:27 PM

Will XML modification affect performance?

How to modify large XML files How to modify large XML files Mar 03, 2025 pm 05:31 PM

How to modify large XML files

How to Use RSS Feeds for News Aggregation and Content Curation? How to Use RSS Feeds for News Aggregation and Content Curation? Mar 10, 2025 pm 03:47 PM

How to Use RSS Feeds for News Aggregation and Content Curation?

How Can I Integrate XML and Semantic Web Technologies? How Can I Integrate XML and Semantic Web Technologies? Mar 10, 2025 pm 05:50 PM

How Can I Integrate XML and Semantic Web Technologies?

How Do I Use XML for Data Interoperability in Healthcare/Finance/etc.? How Do I Use XML for Data Interoperability in Healthcare/Finance/etc.? Mar 10, 2025 pm 05:50 PM

How Do I Use XML for Data Interoperability in Healthcare/Finance/etc.?

How Do I Implement Content Syndication Using RSS? How Do I Implement Content Syndication Using RSS? Mar 10, 2025 pm 03:41 PM

How Do I Implement Content Syndication Using RSS?

How to convert XML content to data How to convert XML content to data Mar 03, 2025 pm 05:25 PM

How to convert XML content to data

See all articles