NYCPHP Meetup

NYPHP.org

[nycphp-talk] Sorry guys, VERY bad coding night tonight!

Phil Powell soazine at erols.com
Wed Sep 3 12:05:47 EDT 2003


That's a great option for PHP to parse for XML, but unfortunately PHP is not
the only language accessing the XML file - there is also a backend TCL
script that also reads it; TCL not having any native XML processing syntax
it would choke on <![CDATA]>

Phil
----- Original Message ----- 
From: "David Sklar" <sklar at sklar.com>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Wednesday, September 03, 2003 11:25 AM
Subject: RE: [nycphp-talk] Sorry guys, VERY bad coding night tonight!


> You can also surround the encoded element content with <![CDATA[ ]]>
> markers, like this:
>
> <subcategory><![CDATA[Content Management, Versioning &#38;
> Delivery:]]></subcategory>
>
> David
>
> On Wednesday, September 03, 2003 11:20 AM,  wrote:
>
> > I had a similar problem parsing ampersands in XML and converting the
> > page to XHTML via PHP.  To end up with compliant XHTML entities, I
> > had to double encode ampersands in the XML like so:
> >
> > <subcategory>Content Management, Versioning &#38;#38;
> > Delivery:</subcategory>
> >
> > If the sample above gets processed in your mail client, that's
> > "ampersand - pound - 3 - 8 - pound - 3 - 8"
> >
> >
> >
> >
> >>> How can I ensure that when going back and forth between HTML, PHP
> >>> and XML that "å" REMAINS "å" AS IS???
> >>
> >> I don't really understand, but maybe you can use &amp; for the
> >> ampersands?
> >>
> >> Chris
> >
> > _________________________________________________________________
> > MSN 8 with e-mail virus protection service: 2 months FREE*
> > http://join.msn.com/?page=features/virus
> >
> > _______________________________________________
> > talk mailing list
> > talk at lists.nyphp.org
> > http://lists.nyphp.org/mailman/listinfo/talk
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk




More information about the talk mailing list