Posted by Colin McKinnon on 12/16/93 11:58
Rebecca Tsukalas wrote:
>
> i already have some methods of resolution to solve the problem:
> - modify the html tags in the php code, so simplexml does not recognize
> them as xml-tags - replace/delete the < and > or cdata by string
> operator in flash - code own php script to put the xml into a php array
>
I guess the question is really this: Is the HTML always atomic wrt the XML -
in which case it doesn't matter.
The CDATA thing will work as long as you don't have CDATA encolsures within
your html. Personally, I would go for base64 encoding the html and
including the encoding mechanism in the markup - that should be less of an
overhead than the string replace method and (IIRC) the HTML can be
reconstructred by XSLT.
Of course, if you're HTML is not atomic with regard to the XML, then you've
got quite a different problem.
HTH
C.
[Back to original message]
|