Re: PHP & XML Parsing
| From: | Fabian Raygosa | Date: | Fri, 18 May 2001 21:29:55 +0000 |
| Subject: | Re: PHP & XML Parsing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53492@lists.php.net to get a copy of this message | ||
for xml you have to escape certain characters in the file, one is the
ampersand ...
----- Original Message -----
From: "Mike Gifford" <mike@openconcept.on.ca>
To: <php-general@lists.php.net>
Sent: Friday, May 18, 2001 12:24 PM
Subject: [PHP] PHP & XML Parsing
> Hello,
>
> In looking for a good script to parse XML files I stumbled across the
following
> tutorial (which looks very good):
>
> http://www.wirelessdevnet.com/channels/wap/features/xmlcast_php.html
>
> I have set this script up here:
> http://www.airdiv-cupe.org/portal/newsfeed_new_parser.php
>
> and I keep getting the following error (even after making a number of
changes):
> XML error: not well-formed at line 16
>
> And I'm not sure how to troubleshoot this problem.
>
> I'm assuming that it is referring to line 16 on the XML file, in this
case:
> http://cupe.ca/xml/cupenews.rdf
>
> My parsing definitions are as follows
> $itemTitleKey = "^rdf^item^title";
> $itemLinkKey = "^rdf^item^link";
> $itemDescKey = "^rdf^item^description";
>
> Any help would be appreciated.
>
> Mike
> --
> Mike Gifford, OpenConcept Consulting, http://openconcept.ca
> Offering everything your organization needs for an effective web site.
> Featured Client: http://halifaxinitiative.org
> A good life is one inspired by love and guided by knowledge - B. Russell
>
>
> --
> 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