We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17717
    • 433 Posts
    Hi people,

    I get the following parsing error message when I navigate to an xml file:

    XML Parsing Error: undefined entity
    Location: http://development.sitename.com/rdc/rss.xml
    Line Number 2, Column 56:              <html><head><title>MODx Content Manager  » </title>
    --------------------------------------------------------------------------------^
      http://www.blend.uk.com | Web Design by Blend
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: lw-d at Nov 15, 2006, 02:58 PM

      Hi people,

      I get the following parsing error message when I navigate to an xml file:

      XML Parsing Error: undefined entity
      Location: http://development.sitename.com/rdc/rss.xml
      Line Number 2, Column 56:              <html><head><title>MODx Content Manager  » </title>
      --------------------------------------------------------------------------------^

      Your getting HTML back, not XML...better check your XML document and make sure it’s returning XML. An error in your code will likely cause a parse error and force HTML regardless of your document’s content type.
        • 17717
        • 433 Posts
        hmm, when I view source (of what I thought was an xml file), I get the following:

                      <html><head><title>MODx Content Manager  » </title>
                      <style>TD, BODY { font-size: 11px; font-family:verdana; }</style>
                      <script type='text/javascript'>
                      function copyToClip()
                      {
                        holdtext.innerText = sqlHolder.innerText;
                        Copied = holdtext.createTextRange();
                        Copied.execCommand('Copy');
                      }
                    </script>
                      </head><body>
                      <h3 style='color:red'>« MODx Parse Error »</h3>
        
                            <table border='0' cellpadding='1' cellspacing='0'>
                            <tr><td colspan='3'>MODx encountered the following error while attempting to parse the requested resource:</td></tr>
                            <tr><td colspan='3'><b style='color:red;'>« PHP Parse Error »</b></td></tr><tr><td> </td></tr><tr><td colspan='3'><b>PHP error debug</b></td></tr><tr><td valign='top'>  Error: </td><td colspan='2'>array_values() [<a href='function.array-values'>function.array-values</a>]: The argument should be an array</td><td> </td></tr><tr><td valign='top'>  Error type/ Nr.: </td><td colspan='2'>Warning - 2</b></td><td> </td></tr><tr><td>  File: </td><td colspan='2'>/home/site/public_html/development/site2/manager/includes/document.parser.class.inc.php(733) : eval()'d code</td><td> </td></tr><tr><td>  Line: </td><td colspan='2'>373</td><td> </td></tr><tr><td> </td></tr><tr><td colspan='3'><b>Parser timing</b></td></tr><tr><td>  MySQL: </td><td><i>0.0079 s</i></td><td>(<i>3 Requests</i>)</td></tr><tr><td>  PHP: </td><td><i>0.0363 s</i></td><td> </td></tr><tr><td>  Total: </td><td><i>0.0442 s</i></td><td> </td></tr></table></body></html>
          http://www.blend.uk.com | Web Design by Blend
          • 29106
          • 22 Posts
          have you made sure your content type is set to text/xml as i had this problem
            • 17717
            • 433 Posts
            Yeah, its set to xml/text
              http://www.blend.uk.com | Web Design by Blend
              • 17717
              • 433 Posts
              Got it working, I think the problem was to do with the WYSIWYG editor, when I disable it and enter the code (which is a call to a folder via Ditto, it works :0

              Thanks
                http://www.blend.uk.com | Web Design by Blend