Re: XML with PHP
| From: | Michael Shadle | Date: | Thu, 26 Aug 2010 10:02:13 +0000 |
| Subject: | Re: XML with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307684@lists.php.net to get a copy of this message | ||
On Thu, Aug 26, 2010 at 2:54 AM, <user@domain.invalid> wrote:
> Hi
>
> I am trying to read XML files (invoices) from a directory and display them
> to the visitor. Each XML file contains several invoices. The visitor then
> clicks on the XML file (invoices). My PHP snippet should open the xml file
> and locate the appropriate invoice and display the content.
a) first, your email address isn't correct
b) second, it looks like you intend on applying a stylesheet to get
your results. if you don't require XSL, you could look at just using
PHP's simplexml and/or XML DOM functions. it looks like you might just
be using the XSL to transform the XML anwyay; so from what it looks
like you -do not- need XSL in the mix.
c) you can put the PHP in any file you want
d) i believe xpath should work without any problems.