diff options
author | Erlang/OTP <[email protected]> | 2009-11-20 14:54:40 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2009-11-20 14:54:40 +0000 |
commit | 84adefa331c4159d432d22840663c38f155cd4c1 (patch) | |
tree | bff9a9c66adda4df2106dfd0e5c053ab182a12bd /lib/xmerl/doc/src/people2.txt | |
download | otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.gz otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.bz2 otp-84adefa331c4159d432d22840663c38f155cd4c1.zip |
The R13B03 release.OTP_R13B03
Diffstat (limited to 'lib/xmerl/doc/src/people2.txt')
-rw-r--r-- | lib/xmerl/doc/src/people2.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/xmerl/doc/src/people2.txt b/lib/xmerl/doc/src/people2.txt new file mode 100644 index 0000000000..156a692e21 --- /dev/null +++ b/lib/xmerl/doc/src/people2.txt @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- The following part is an internal DTD. + The DTD defines which structure is allowed + in the XML content. --> +<!DOCTYPE people [ +<!ELEMENT people (person)+ > +<!ELEMENT person (name , (profession)+ , (hobby)*)+ > +<!ELEMENT name (first_name , (middle_initial)? , last_name) > +<!ELEMENT first_name (#PCDATA)> +<!ELEMENT last_name (#PCDATA)> +<!ELEMENT profession (#PCDATA)> +<!ELEMENT middle_initial (#PCDATA)> +<!ELEMENT hobby (#PCDATA)> +<!ATTLIST person + born NMTOKEN #IMPLIED + died NMTOKEN #IMPLIED> +]> +<!-- The following part is the element of this XML document --> +<!-- Example XML inspired from XML In A Nutshell --> +<people> + <person born="1912" died="1954"> + <name> + <first_name>Alan</first_name> + <last_name>Turing</last_name> + </name> + <profession>computer scientist</profession> + <profession>mathematician</profession> + <profession>cryptographer</profession> + </person> + <person born="1918" died="1988"> + <name> + <first_name>Richard</first_name> + <middle_initial>P</middle_initial> + <last_name>Feynman</last_name> + </name> + <profession>physicist</profession> + <hobby>Playing the bongos</hobby> + </person> +</people> |