1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

XML Parsing Error !!!!!!

Discussion in 'XML & RSS' started by mecho, Mar 30, 2008.

  1. #1
    Hi ,

    when i try to browse rss.xml i get this error :

    Any help would be grate .
    Thanks
     
    mecho, Mar 30, 2008 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    If you post the URL of your xml file, I'll check it with xmlwf (unix command).
     
    ajsa52, Apr 10, 2008 IP
  3. mecho

    mecho Active Member

    Messages:
    538
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    75
    #3
    Thanks for the reply .

    here is my XML .
     
    mecho, Apr 12, 2008 IP
  4. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Well, is not an xml file, is a php file that if executed can generate an xml file.
    But currently when somedbody access that URL the php code is not executed, instead is only displaying its content, and this is a security hole in your system.
    So you need to fix the configuration on your server and make that url run that php code.
     
    ajsa52, Apr 12, 2008 IP
  5. mecho

    mecho Active Member

    Messages:
    538
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    75
    #5
    yea u right .

    there was a line in .htaccess that it makes that file working well . after i start using xml-sitemaps for my website , that line was the reason of the problems in my Sitemaps !!! so xml-sitemaps support removed that line from .htaccess and after that XML file is not working :(

    i dunno what to do now ...
    how can i make a Good XML file beside of using xml-sitemaps ??

    Thanks anyway for trying to help
    + for now i removed that file from the server cuz of the security hole that u said and i didnt know about it :) ty
     
    mecho, Apr 12, 2008 IP
  6. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #6
    I have not tried myself but you can find several free tools to generate sitemaps on this page: XML Sitemap Tools
    Under different plataforms: Java, Php, Python, .net ...
     
    ajsa52, Apr 12, 2008 IP
  7. mecho

    mecho Active Member

    Messages:
    538
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    75
    #7
    No sorry i guess explained badly .
    i have XML sitemap generator . that s why when i use that line in .htaccess i can not see that RSS.xml file .
    so what i meant was how can i have a working RSS file beside of my sitemap generator.
     
    mecho, Apr 12, 2008 IP
  8. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #8
    Ah, ok. You can try this: rename your .php file (previously named rss.xml) to myrss.php for example, and add this line in your .htaccess file:
    
    RewriteRule   ^rss\.xml$     /myrss.php [L]
    
    Code (markup):
    Then try to access your rss.xml to see if your php file is executed or not.
     
    ajsa52, Apr 12, 2008 IP