SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    UK
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Where to start....

    i have the following code in my XML document which is named songs.xml

    Code:
    <?xml version="1.0" ?>
       <songs>
           <song display="Enter Sandman" url="audio/enter_sandman.mp3" />
           <song display="King Nothing" url="audio/king_nothing.mp3" />
       </songs>
    Now that seems correct to me... but is it? I run the script and it shows me:

    Code:
    The XML page cannot be displayed 
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. 
    
    
    --------------------------------------------------------------------------------
    
    End tag 'songs' does not match the start tag 'song'. Error processing resource 'http://localhost:8080/songs.xml'. Line 4, ...
    
      </songs>
    ----^
    Which is weird.. because the start tag "song" does not exist... only the identities of the actual songs... which are closed.....

    Any help?

  2. #2
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Um... what are you trying to achieve? Output XML to screen? You can't just write an XML file and then display it in your browser - it doesn't work like that...


Bookmarks

Posting Permissions

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