[BNM] Create XML with PHP 4 question...

Jay Caines-Gooby jay at gooby.org
Thu Mar 1 19:02:41 GMT 2007


On 3/1/07, Alan Braddish <alan at webspoke.co.uk> wrote:

> Hi All,
>
> I've been given the task of creating an XML file using PHP 4 from data in a
> MySQL db.  However, not having done any XML in PHP before, I was wondering
> if anybody could enlighten me as to the best method to use?
>
> I would rather avoid having to manually echo the <tag> and </tag> tags out
> to a file.
>
> What's the DOM object/functions I should be using in PHP to achieve this?

Don't torture yourself trying to use the (undocumented/badly
documented/wrongly documented* delete as appropriate) php4 DOM
methods.

Use this or something like it instead:

http://ciaran.nurples.com/builder/docs/Builder/_Builder.php.html

-- 
Jay Caines-Gooby
jay at gooby.org
+44 (0)7956 182625
skype:jaygooby
http://snipperoo.com
http://blog.snipperoo.com



More information about the BNMlist mailing list. Powered by Wessex Networks