Java Technology & XML - DTD
I have to create a DTD that has 2 children of the same name but with different parents.
Project Title - exactly 1
Purpose - exactly 1
Interface Guidelines - exactly 1
Public Content - exactly 1
Sections - *
Title - exactly 1
Abstract - exactly 1
Documentation Artifacts - exactly 1
Artifact - *
Title
Description of Document - exactly 1
Glossary - exactly 1
Glossary Entry - 0..*
Word - exactly 1
Definition - exactly 1
Sections and artifacts both have a child called Title. I did the dtd as follows, but get an error message in XML SPY about having 2 titles. How can I get past the duplication without changing the element name?
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2007 sp2 (http://www.altova.com) by Sandy (sd74) -->
<!ELEMENT Project_Title (#PCDATA)>
<!ELEMENT Purpose (#PCDATA)>
<!ELEMENT InterfaceGuide (#PCDATA)>
<!ELEMENT Public_Content (Sections*)>
<!ELEMENT Sections (Title, Abstract)>
<!ELEMENT Title (#PCDATA)>
<!ELEMENT Abstract (#PCDATA)>
<!ELEMENT Artifacts (Artifact*)>
<!ELEMENT Artifact (Title, Description_of_Document)>
<!ELEMENT Title (#PCDATA)>
<!ELEMENT Description_of_Document (#PCDATA)>
<!ELEMENT Glossary (Glossary_Entry)>
<!ELEMENT Glossary_Entry (EMPTY)>
<!ELEMENT Glossary_Entry (Word, Definition)>
<!ELEMENT Word (#PCDATA)>
<!ELEMENT Definintion (#PCDATA)>

