TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > PHP

Notices

word to xml

PHP


Reply
 
Thread Tools Display Modes
Old 01-12-2007, 04:55 PM   #1
Peter
Guest
 
Posts: n/a
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
Old 07-12-2007, 04:54 PM   #2
Janwillem Borleffs
Guest
 
Posts: n/a
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
Old 07-12-2007, 04:55 PM   #3
Janwillem Borleffs
Guest
 
Posts: n/a
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
Old 07-12-2007, 04:55 PM   #4
Janwillem Borleffs
Guest
 
Posts: n/a
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
Old 07-12-2007, 05:00 PM   #5
Janwillem Borleffs
Guest
 
Posts: n/a
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
Old 07-12-2007, 05:07 PM   #6
Janwillem Borleffs
Guest
 
Posts: n/a
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



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 05:37 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional