XML Newbie Has Element Error

Discussion in 'Software' started by babochka, Mar 28, 2005.

  1. babochka

    babochka Private E-2

    To Life Immortal

    I am teaching myself XML. I am trying to create a webpage which will be a menu of links to different games we like to play. It is found at:
    http://home.earthlink.net/~babochka2a/theosis/games.xml

    The current code is:
    Code:
    <?xml version="1.0" encoding="windows-1252" standalone="yes" ?>
    <!--
    open the DOCTYPE declaration
    the open square bracket indicates an internal DTD
    -->
    <!DOCTYPE games [
    <!--
    define the internal DTD
    games must contain 1 child element
    -->
    	<!ELEMENT games (text)>
    <!--
    text must contain 8 child elements in the order listed
    -->
    		<!ELEMENT text (opening, title, subtitle, gamename+, navilinks, credits, footer, signat)>
    <!--
    the elements listed below may only contain text that is not markup
    -->
    			<!ELEMENT opening (#PCDATA)>
    			<!ELEMENT title (#PCDATA)>
    			<!ELEMENT subtitle (#PCDATA)>
    			<!ELEMENT gamename (ANY)>
    				<!ATTLIST gamename 
    				ACTUATE (AUTO|USER) "USER"
    				BEHAVIOR CDATA #IMPLIED
    				CONTENT-ROLE CDATA #IMPLIED
    				CONTENT-TITLE CDATA #IMPLIED
    				HREF CDATA #REQUIRED
    				INLINE (TRUE|FALSE) "TRUE"
    				ROLE CDATA #IMPLIED
    				SHOW (REPLACE|EMBED|NEW) "REPLACE"
    				TITLE CDATA #IMPLIED
    				XML-LINK CDATA #FIXED "SIMPLE">
    			<!ELEMENT navilinks (#PCDATA)>
    			<!ELEMENT credits (#PCDATA)>
    			<!ELEMENT footer (#PCDATA)>
    			<!ELEMENT signat (#PCDATA)>
    <!--close the DOCTYPE declaration-->
    ]>
    <games>
    	<text>
    		<opening>
    			To Life Immortal!<br />
    			The Pascha Family Presents:<br />
    		</opening>
    		<title>
    			The Games We Play.
    		</title>
    		<subtitle>
    			Yahoo! Games List.
    		</subtitle>
    		<gamename href="bridge.xml" title="contract bridge notes">bridge</gamename>
    		<gamename href="canasta.xml" title="canasta notes">canasta<a/>
    		<gamename href="chess.xml" title="chess notes">chess</gamename>
    		<gamename href="dominoes.xml" title="dominoes notes">dominoes</gamename>
    		<gamename href="euchre.xml" title="euchre notes">euchre</gamename>
    		<gamename href="gofish.xml" title="go fish notes">go fish</gamename>
    		<gamename href="literati.xml" title="literati notes">literati</gamename>
    		<gamename href="mah jongg.xml" title="mah jongg notes">mah jongg</gamename>
    		<gamename href="pinochle.xml" title="pinochle notes">pinochle</gamename>
    		<gamename href="sheepshead.xml" title="sheepshead notes">sheepshead</gamename>
    		<gamename href="spades.xml" title="spades notes">spades</gamename>
    		<navilinks>
    			link query.
    			link query.
    		</navilinks>
    		<credits>
    			Credits go here.
    		</credits>
    		<footer>
    			wiggle feet.
    		</footer>
    		<signat>
    			tesing testing 1 2 3.
    		</signat>
    	</text>
    </games>
    
    IE gives me an endtag error:
    </text>

    I will continue to try to debug the page. I have found two errors earlier: I typed a single quote instead of a double in the DTD and I forgot to put a + at the end of gamename to show more than one of that element in the DTD.

    Thanks in advance for you help.


    Peace and Long Life
    Babochka
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds