for xml you have to escape certain characters in the file, one is the
ampersand ...
----- Original Message -----
From: "Mike Gifford" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to