进阶day13-XML的约束文件-DTD

This commit is contained in:
2026-04-11 13:40:51 +08:00
parent 4e2f6f6f5d
commit 0b31c10927
3 changed files with 59 additions and 6 deletions

6
javaSE-day13/books.dtd Normal file
View File

@@ -0,0 +1,6 @@
<!ELEMENT books (book+)>
<!ELEMENT book (name,price,author)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT price (#PCDATA)>
<!ELEMENT author (#PCDATA)>
<!ATTLIST book bid CDATA "j">