NYCPHP Meetup

NYPHP.org

[nycphp-talk] Problem with xml_parse_into_struct

Phil Powell soazine at erols.com
Sat Feb 1 19:45:01 EST 2003


Well I found a way around that problem, but changing the XML structure to be
valid XML was way too problematic considering:

1) the volume of XML files to change
2) the fact that other programs (Java, TCL, ASP) use those very same XML
files alongside PHP.

Messy, ain't it?

Phil

----- Original Message -----
From: "Analysis & Solutions" <danielc at analysisandsolutions.com>
To: "NYPHP Talk" <talk at nyphp.org>
Sent: Saturday, February 01, 2003 7:17 PM
Subject: Re: [nycphp-talk] Problem with xml_parse_into_struct


> On Thu, Jan 30, 2003 at 01:57:06AM -0500, Phil Powell wrote:
>
> > I have various XML files that might contain <> tags inside the element
> > body, for example:
>
> Then it's not valid XML.  Data that should not be parsed needs to be in
> CDATA sections.  See http://www.w3.org/TR/REC-xml#sec-cdata-sect for more
> information.  Example:
>
> <element>
>  <![CDATA[The text over <b>here is bold</b>.]]>
> </element>
>
> --Dan
>
> --
>                PHP classes that make web design easier
>     SqlSolution.info  | LayoutSolution.info |  FormSolution.info
>  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>  4015 7th Ave #4AJ, Brooklyn NY    v: 718-854-0335   f: 718-854-0409
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>




More information about the talk mailing list