I'm wrting a php file that writes a XML file, I want a URL to go between <URL> and </URL> nodes but can i make sure it's not going to corrupt the XML file with all it's & and ' in the URL? is there a way i can do that because right now i get this error

A semi colon character was expected. Error processing resource 'http://localhost:8081/scripts/newsxml.php?LastUpdat...

    Can you show us the resulting XML that was generated which caused that error?

      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. 
      
      
      --------------------------------------------------------------------------------
      
      A semi colon character was expected. Error processing resource 'http://localhost:8081/scripts/newsxml.php?LastUpdat...
      
        <URL>http://www.nzherald.co.nz/nrl/news/article.cfm?c_id=270&objectid=10693111&ref=rss
      --------------------...
      
      
      

      I can't right click and view source i'm sorry.

        Why can't you? Also, can you simply dump the output to a file instead?

        It's hard to say what's causing the problem without even seeing the problem.

          My only guess is that the ampersand should be encoded as "&amp;" since "&" is used for encoding characters (thus "&ref=" would be an invalid sequence since it can't be decoded properly).

            so i would need to replace and replace it back later, is there a way to get around this? i thought there was.

              NZ_Kiwis wrote:

              replace it back later

              Er.. no you wouldn't? "&amp;" translates to "&".

                Arr you're correct, the URL still works.

                THanks for the help.

                  Write a Reply...