Re: Planning to create Array -> XML extension
| From: | Christoph Dorn | Date: | Mon, 14 Jul 2008 21:39:37 +0000 |
| Subject: | Re: Planning to create Array -> XML extension | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5619@lists.php.net to get a copy of this message | ||
> I need to convert PHP arrays to XML to feed the result into XSLT processor.
> So, PHP code does not generate XML, it generates simple and plain arrays,
> and these arrays are converted to XML to be used in XSLT MVC templating
> system. XML is transparent in this case: it is used, but is never generated
> manually and is not visible explicitly.
What language is the XSLT processor running in?
You could try going from PHP Arrays to JSON to XML if your XSLT is
running in java for instance. There is a php extension to generate JSON
and it should be no problem to go from JSON to XML in Java.
Christoph