This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, came across this one: I have the following xml file: <Relation> <Me> <Name> Axel </Name> </Me> <Other> <Name> <First> Joe </First>
<Last> Stranger </Last> </Name> </Other> </Relation> When I now write a dtd it would look like this: <!Element Relation (Me, Other) > <!Element Me (Name) > <!Element Name (#PCDATA)> <!Element Other (Name) > <!Element Name (First, Last) > <!Element First (#PCDATA)> <!Element Last (#PCDATA)> Now there are TWO Name definitions in dtd. (O.k. I can test it. Will do it later today.) How does dtd-validator find right definition for tag <name> in dtd for that element. There are 2 definitions? Or must every tag-name in structure be unique if we use dtd? Found nothing about this problem in dtd chapter of xml2 by wrox. Thanks. Axel [ January 19, 2003: Message edited by: Axel Janssen ]