ToonMariner Posted February 7, 2007 Share Posted February 7, 2007 Hi people... I hope this relatively simple... I am usign DOMXML to manage an rss feed. The feed started off as a nice neat handcoded rss feed with all the tags nested and easily readable. The feed is now managed by php and the xml file is opened and updated via teh DOMXML. The 'problem' is that the out put does not maintain the nested structure of the file; there appears to be no method of using tabs and linefeeds in the DOMXML. If anyone knows of a method that I could use to achieve this then please please let me know. Many thanks. Link to comment https://forums.phpfreaks.com/topic/37461-output-string-from-dom-xml/ Share on other sites More sharing options...
ToonMariner Posted February 8, 2007 Author Share Posted February 8, 2007 #bump# anyone? Link to comment https://forums.phpfreaks.com/topic/37461-output-string-from-dom-xml/#findComment-179834 Share on other sites More sharing options...
hvle Posted February 8, 2007 Share Posted February 8, 2007 If I understand you correctly, you wanted to print the RSS the way browser display it? like FireFox display a cnn's rss? point your browser to http://rss.cnn.com/rss/cnn_topstories.rss Link to comment https://forums.phpfreaks.com/topic/37461-output-string-from-dom-xml/#findComment-179847 Share on other sites More sharing options...
ToonMariner Posted February 8, 2007 Author Share Posted February 8, 2007 NO sorry hvle its more the actual string in the file.. I need to place tabs and line returns etc. You know how you can view the html source - well if people get to see my rss source I want it all nested nicely... Does that make sense? Link to comment https://forums.phpfreaks.com/topic/37461-output-string-from-dom-xml/#findComment-179921 Share on other sites More sharing options...
hvle Posted February 8, 2007 Share Posted February 8, 2007 Have you tried DOM instead of DOM XML? DOM XML is out dated and was not included in PHP 5. Link to comment https://forums.phpfreaks.com/topic/37461-output-string-from-dom-xml/#findComment-179935 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.