How to convert XML to string

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
buntu
Forum Newbie
Posts: 2
Joined: Thu Sep 10, 2009 7:08 pm

How to convert XML to string

Post by buntu »

Hi,

Can someone let me know how do I convert a XML to a string format. Thanks for the help!
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: How to convert XML to string

Post by Mark Baker »

Don't
Process it as XML using something like simpleXML

If you absolutely have to read it as a string, just use standard file functions to read it in as a string
Post Reply