cbbcfeagccb
New Member
Given this snippet of an XMLfile:\[code\]<Active> <SystemName Permissions="RW" Datatype="STRING" Case="MIXED_RESPECT">NASCENT Default System Name</SystemName> <ModelNumber Permissions="RO" Datatype="STRING" Case="MIXED_RESPECT">A104S2</ModelNumber><!-- snip snip snip -->\[/code\]and a corresponding snippet of DTD that matches it:\[code\]<!ELEMENT Active (SystemName,ModelNumber,SerialNumber....)> <!ELEMENT ModelNumber (#PCDATA)> <!ATTLIST ModelNumber Permissions CDATA #FIXED "RO"> <!ATTLIST ModelNumber Datatype CDATA #FIXED "STRING"> <!ATTLIST ModelNumber Case CDATA #FIXED "MIXED_RESPECT"> <!ELEMENT SystemName (#PCDATA)> <!ATTLIST SystemName Permissions (RW|RO) "RO" Datatype CDATA #FIXED "STRING" Case CDATA #FIXED "MIXED_RESPECT"><!-- snip snip snip -->\[/code\]I get the following errors when running the XML against the DTD:\[code\]/home/.../Active.xml:7: element ModelNumber: validity error : No declaration for attribute Permissions of element ModelNumber <ModelNumber Permissions="RO" Datatype="STRING" Case="MIXED_RESPECT">A104S2</M ^/home/.../Active.xml:7: element ModelNumber: validity error : No declaration for attribute Datatype of element ModelNumber <ModelNumber Permissions="RO" Datatype="STRING" Case="MIXED_RESPECT">A104S2</M ^/home/.../Active.xml:7: element ModelNumber: validity error : No declaration for attribute Case of element ModelNumber <ModelNumber Permissions="RO" Datatype="STRING" Case="MIXED_RESPECT">A104S2</M<!-- snip snip snip -->\[/code\]Can someone explain what it's whining about? I looked at Google till I'm cross eyed. The SystemName works, it recognizes that ModelNumber, etc are elements it just can see the !Attlist's!