XML not displaying properly, am I doing something wrong?

Discussion in 'XML & RSS' started by ProductivePC, Nov 27, 2005.

  1. #1
    I am attempting to set up a Google Sitemap however I kept getting an error so I decided to find a test XML document and post it up to my website and I cannot seem to get it to run either.

    Do I need something on my server in order for people to see the XML document?

    If not, can someone help? (I know absolutely nothing about XML)

    Here is the code for the test.xml:
    
      <?xml version="1.0" encoding="utf-8" ?>
    - <!--  Copyright 1998 Academia Sinica Computing Center --> 
    - <!--  Permission to use and distribute granted under MPL --> 
    - <!--  Email corrections to [EMAIL="ricko@gate.sinica.net.tw"]ricko@gate.sinica.net.tw[/EMAIL] --> 
    - <test type="io0">
      <name>Chinese Test #0: utf-8</name> 
      <data>This file is the null test. It is a UTF-8 encoded file with no non-ASCII characters (i.e. it is also an ASCII or iso-8859-n file).</data> 
      <data>The XML header of this file is <?xml encoding="utf-8"?>.</data> 
      </test>
    
    Code (markup):
    The error I receive is as follows:
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.

    --------------------------------------------------------------------------------
    Invalid at the top level of the document. Error processing resource 'http://www.worldfamousgiftbaskets.net/test.xml'. Line...
    <?xml version="1.0" encoding="utf-8" ?>
     
    ProductivePC, Nov 27, 2005 IP
  2. ProductivePC

    ProductivePC Peon

    Messages:
    362
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nevermind. I have it working now. I found out the words could not be there for the test file. The -'s and for my Google Sitemap, I don't know why but it all of a sudden started working whereas before it was not.
     
    ProductivePC, Nov 27, 2005 IP