Menu
Hi there,
I am creating a blog (for learning purposes) that uses PHP to write to an RSS feed. each individual blog is actually an <item> element in the XML file.
I am using DOMDocument to create the XML using the data I grab from the POST, it all works real nice but this is where I am hung up. The DOMDocument creates the <xml …. > tag at the top.
Is there a way to surpress this so that I can take the XML I have created write it into the .XML file that is the RSS feed? Or is the best way to handle it just by removing that first line?
Maybe there is a totally better way to do this? Any advice would be great.
Thanks!