Re: XML parsing without the PHP4 XML functions
| From: | Chris Lee | Date: | Wed, 14 Feb 2001 17:04:38 +0000 |
| Subject: | Re: XML parsing without the PHP4 XML functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39674@lists.php.net to get a copy of this message | ||
If your satisfied with IE5.0 customers you could do all that without php,
use an XSL file. Now if you want PHP to parse the XML file, I can see why,
your going to have to get XML installed. Have you considered other
providors? there are lots. Im one of them. Ive been told there are ways of
adding modules dynamically on runtime
http://php.net/manual/en/function.dl.php
Ive never needed it / used it. sorry :(
--
Chris Lee
Mediawaveonline.com
em. lee@mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
""Stefen Lars"" <stefenlars@hotmail.com> wrote in message
news:LAW2-F1611SWoBDyseV000092ed@hotmail.com...
> Hello all
>
> I have recently been assigned the task of parsing an xml file and format
the
> contents of the file in HTML. The xml file lies on another server. Our web
> space provider does not provide the XML functions (nor is he willing to
> install them) :-gr.
>
> I am sure that I am not the only who has come across this problem.
>
> Would someone have already created a few functions to parse xml that they
> are willing to share?
>
> I have the following structure to deal with:
>
> <faq>
> <item>
> <product>ProductName</product>
> <question>Why does it not work</question>
> <answer>Because it is not turned on<answer>
> <item>
> </faq>
>
> There are whole load of <item>s in the file.
>
> I then want to display the contents a bit like this:
>
> echo $product;
> echo $question;
>
> etc (of course with some HTML formatting, like a bulleted list).
>
> Any help would be really VERY appreciated!
>
> Thanks
>
> S
>
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>