tired of banging my head against the wall -- xml craziness

Sharky Forums


Results 1 to 2 of 2

Thread: tired of banging my head against the wall -- xml craziness

  1. #1
    Tiger Shark unclescrooge's Avatar
    Join Date
    Mar 2002
    Location
    Somewhere South of North and North of South
    Posts
    594

    tired of banging my head against the wall -- xml craziness

    hi,

    can someone help me understand what i'm doing wrong here? the validator that i'm using is giving me error messages with how i'm using the ART element and i just don't get it. why is it wrong?



    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet href="homeworkcss.css" type="text/css" ?>
    <!DOCTYPE CDINVENTORY [
    <!NOTATION gif SYSTEM "Iexplorer.exe">
    <!NOTATION jpg SYSTEM "Iexplorer.exe">
    <!ELEMENT CDLIST (ARTIST, ALBUM, SONGS, SITE)>
    <!ELEMENT ARTIST (#PCDATA|ART)*>
    <!ATTLIST ARTIST Genre (Texas|Country|Rock) "Rock">
    <!ELEMENT ART (#PCDATA)>
    <!ATTLIST ART type NOTATION (gif|jpg) "jpg" image CDATA #IMPLIED>
    <!ELEMENT ALBUM (#PCDATA)>
    <!ELEMENT SONGS (SONGTITLE*)>
    <!ELEMENT SONGTITLE (#PCDATA)>
    <!ATTLIST SONGTITLE description CDATA #REQUIRED>
    <!ELEMENT SITE (#PCDATA)>
    <!ENTITY copyright "Copyright &#169; 2007 Wounded Angel Productions">
    ]>

    <CDLIST>
    <ARTIST Genre="Texas">Kevin Fowler</ARTIST>
    <ART type="jpg" image="/images/KFowler.jpg" />
    <ALBUM>Five Song EP</ALBUM>
    <SONGS>
    <SONGTITLE description="Texas Rock">Title1</SONGTITLE>
    <SONGTITLE description="Ballad">Title2</SONGTITLE>
    <SONGTITLE description="Texas">Title3</SONGTITLE>
    <SONGTITLE description="Rock">Title4</SONGTITLE>
    <SONGTITLE description="Texas">Title5</SONGTITLE>
    </SONGS>
    <ARTIST Genre="Country">Pat Green</ARTIST>
    <ART type="jpg" image="/images/PGreen.jpg" />
    <ALBUM>Wave on Wave</ALBUM>
    <SONGS>
    <SONGTITLE description="Ballad">Wave on Wave</SONGTITLE>
    <SONGTITLE description="Rock Ballad">Mustang Island</SONGTITLE>
    <SONGTITLE description="Pop Country">Guys Like Me</SONGTITLE>
    <SONGTITLE description="Pop Country">Poetry</SONGTITLE>
    <SONGTITLE description="Pop Country">If I Were the Devil</SONGTITLE>
    <SONGTITLE description="Acoustic Ballad">Hidden Track</SONGTITLE>
    </SONGS>
    <SITE>This site is sponsored by the letter &quot; E &quot; &amp; a number &gt; 12 &lt; 14 &copyright; </SITE>
    </CDLIST>
    "If you come to a fork in the road, take it"
    Yogi Berra.
    http://www.jchampion.com

  2. #2
    Ultra Great White Shark!! richardginn's Avatar
    Join Date
    Feb 2001
    Posts
    16,118
    I think you have to have everything just like SONGTITLE lines. None of that /> junk.

    Just my guess.
    Last edited by richardginn; 06-24-2007 at 11:24 AM.
    www.myeducational plan.com-come see my plan to fix the USA educational system. I hope this is sig legal. Major Site Design Update on July 18, 2006. On June 18, 2009 passed the 10,000 post mark. December 24, 2009: Major Theme change and more....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •