DOMDocument->save

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SimonBoris
Forum Newbie
Posts: 4
Joined: Sat Nov 21, 2009 7:53 am

DOMDocument->save

Post by SimonBoris »

Hi everybody,

I am currently loading an xml file ( an xml template ) and modify some node value then save it on the server using the 'save' method of the DOMDocument. It write the file, but always encode it in ANSI.

There is a saveXML method, but that does not write a file on the server...

I load default.xml, modify it, and want to save it as jack.xml encoded in utf8.

How can i make it work?

Any clues, please share,
Thx
Post Reply