Project

General

Profile

1
<?xml version="1.0"?>
2
<!DOCTYPE PARENT [
3
<!ELEMENT PARENT (CHILD*)>
4
<!ELEMENT CHILD (MARK?,NAME+)>
5
<!ELEMENT MARK EMPTY>
6
<!ELEMENT NAME (LASTNAME+,FIRSTNAME+)*>
7
<!ELEMENT LASTNAME (#PCDATA)>
8
<!ELEMENT FIRSTNAME (#PCDATA)>
9
<!ATTLIST MARK
10
            NUMBER ID #REQUIRED
11
            LISTED CDATA #FIXED "yes"
12
            TYPE (natural|adopted) "natural">
13
<!ENTITY STATEMENT "This is well-formed XML">
14
]>
15
<PARENT>
16
&STATEMENT;
17
<CHILD>
18
<MARK NUMBER="1" LISTED="yes" TYPE="natural"/>
19
<NAME>
20
<LASTNAME>child</LASTNAME>
21
<FIRSTNAME>second</FIRSTNAME>
22
</NAME>
23
</CHILD>
24
</PARENT>
25

    
(6-6/34)