Jump to content

Output string from DOM XML


ToonMariner

Recommended Posts

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

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.