Each line of the "Java" DTD file corresponds to the detailed __java

Source: Internet
Author: User
Case

<?xml version= "1.0" encoding= "UTF-8" standalone= "yes"?>

<! DOCTYPE book[<! ELEMENT Book (computer) *>

<! ELEMENT computer (Book_name,price,author) >

<! ELEMENT book_name (#PCDATA) > <! ELEMENT Price (#PCDATA) > <! ELEMENT author (#PCDATA) >]>

<book>

<computer> <author>redarmychen</author>

<book_name>javaweb Development </book_name>

<price>30.0</price>

</computer> <computer>

Development of <BOOK_NAME>CSS Applications </book_name>

<price>1000</price>

<author>redarmy_Chen</author>

</computer> </book>
Case study:

The standalone property in the first line of the XML declaration statement takes a "yes" value to indicate that the document is a stand-alone document in the document that all the required entity declarations contain.

The second line declares a DTD constraint

The third line defines that the book element has multiple identical elements-the computer element

The line four defines three elements in the computer element: Book_name, Price, author

Line five defines the Book_name element as #PCDATA类型

Line six defines the #PCDATA type of the price element

Line seventh defines the author element as #PCDATA type

The end sign of the Eighth Act Declaration

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.