word to xml

This is a discussion on word to xml within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I have the following problem: 1) editor enters text from word into a texarea 2) editor saves data into mysql ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-30-2007
Peter
 
Posts: n/a
Default word to xml


I have the following problem:

1) editor enters text from word into a texarea
2) editor saves data into mysql dbase
3) editor hits button "generate rss.xml"

the problem is that some word characters cant be used in the xml and
therefore the output rendered can not be used (or is not rendered at all)

is there a 'simple' way to solve my problem ?

regards, Peter


Reply With Quote
  #2 (permalink)  
Old 12-06-2007
Janwillem Borleffs
 
Posts: n/a
Default Re: word to xml

Peter schreef:
> I have the following problem:
>
> 1) editor enters text from word into a texarea
> 2) editor saves data into mysql dbase
> 3) editor hits button "generate rss.xml"
>
> the problem is that some word characters cant be used in the xml and
> therefore the output rendered can not be used (or is not rendered at all)
>
> is there a 'simple' way to solve my problem ?
>


Capture the content in a CDATA section:

<?xml version='1.0' ?>
<rss>
<content><![CDATA[ .... ]]></content>
</rss>


JW
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:47 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0