grucker Posted May 25, 2010 Report Posted May 25, 2010 I am using ror.xml to feed a php page. It gives an error because of the colons in the script. If I remove the colons it works. I have been deleting these three lines from every entry. It was ok doing it once and adding or deleting a page as and when. Now the site is to undergo massive changes. Is there a way around this? <ror:updatePeriod /> <ror:sortOrder>0</ror:sortOrder> <ror:resourceOf>sitemap</ror:resourceOf> Quote
falkencreative Posted May 25, 2010 Report Posted May 25, 2010 I'll try to help, but unfortunately I'm not all that familiar with using a ror.xml file. As far as I know, it's basically a RSS file but with more fields. A couple points of clarification: -- In regards to the "it gives an error because of colons in the script" - could you use str_replace() to delete/escape the colons from the script? -- do the three lines have anything to do with the colon error? If not, why are you removing them? Quote
grucker Posted May 25, 2010 Author Report Posted May 25, 2010 The colons are in the script I showed and the lines are surplus to my requirements.They are in evvery entry so its a nuisance deleting them. I will try your advice and see what happens. Thanks David Quote
falkencreative Posted May 25, 2010 Report Posted May 25, 2010 Ah, got it. I thought you were meaning colons in the content within the tags, not in the xml tags themselves. You can ignore my advice about deleting/escaping the colons -- that won't work if they are in the tag. I'm not sure how much more I can help on this... This might help: http://articles.sitepoint.com/article/xml-namespaces-explained <-- make sure to look at this http://www.codingforums.com/archive/index.php/t-87966.html Quote
grucker Posted May 26, 2010 Author Report Posted May 26, 2010 Thanks for the links. They advised how to sort my problem. Regards Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.