Re: Preferred way of generating XML in pear packages?
| From: | Guillaume Lecanu | Date: | Tue, 05 Apr 2005 14:37:37 +0000 |
| Subject: | Re: Preferred way of generating XML in pear packages? | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37090@lists.php.net to get a copy of this message | ||
Le mardi 05 avril 2005 à 16:26 +0200, Stephan Schmidt a écrit :
> Hi,
>
> James Carr wrote:
> > I'm currently touching up my payfuse/clearcommerce package to submit
> > as a proposal, and I'm curious what is the preferred method of
> > generating XML in pear packages? I am currently using DOM, but am
> > wondering if I should shy away from it due to the differences in
> > implementation between php4 and php5?
>
> I could recommend three packages in PEAR:
> - XML_Util (provides helper methods to build tags)
> - XML_FastCreate
> - XML_Serializer (pass it an array/object and you get XML)
>
> There's also XML_Tree but to me it seems that it's a bit orphaned.
Thanks Stephan for recommending XML_FastCreate :)
Just for information, in XML_FastCreate you can choose between 2
method : "Text" by default, or "XML_Tree" if you need to manipulate
manually the XML.
>
> In most cases I personally use XML_Serializer.
>
> Stephan
>
--
Guillaume Lecanu <Guillaume@Lya.fr>