xref: /PHP-8.4/ext/dom/tests/book_with_dtd2.xml (revision 1a5c460e)
1<?xml version="1.0" encoding="UTF-8" ?>
2<!DOCTYPE books [
3<!ENTITY entitest "entity is only for test purposes">
4<!ATTLIST title default CDATA "default title">
5<!ELEMENT books (book*)>
6<!ELEMENT book (title, author)>
7<!ELEMENT title (#PCDATA)>
8<!ELEMENT author (#PCDATA)>
9]>
10<books>
11    <book>
12    <title>The Grapes of Wrath</title>
13    <author>John Steinbeck</author>
14    </book>
15    <book>
16    <title>The Pearl</title>
17    <author>John Steinbeck</author>
18    </book>
19    <book>
20    <title>&entitest;</title>
21    <author><![CDATA[data for test]]></author>
22    </book>
23</books>
24