Page 1 of 1

Should I store HTML in XML or encode it first?

Posted: Wed Apr 16, 2008 10:24 pm
by toasty2
I'm writing a content system that will use XML for storage. I will be storing HTML, so should I just drop the HTML into XML elements or is that a bad idea and will it affect parsing of the file using simplexml? If it will cause problems, what should I do...base64?

Re: Should I store HTML in XML or encode it first?

Posted: Wed Apr 16, 2008 10:34 pm
by alex.barylski
If memory serves me correct (I implemented an XML CMS as well) I believe it does cause problems...

I stored the XHTML code as CDATA I think -- try it and find out.