Re: HTML tags in XML

2006-03-22 Thread Mark Brownell
From: Devin Asay [EMAIL PROTECTED] Hi Folks, Is it possible to store html styled text in an xml document and then successfully retrieve the text with html markup intact? I'm working on an application where I need to save styled text in an XML document. I can successfully insert the htmlText

HTML tags in XML

2006-03-21 Thread Devin Asay
Hi Folks, Is it possible to store html styled text in an xml document and then successfully retrieve the text with html markup intact? I'm working on an application where I need to save styled text in an XML document. I can successfully insert the htmlText of the styled field into the

Re: HTML tags in XML

2006-03-21 Thread Trevor DeVore
On Mar 21, 2006, at 7:43 AM, Devin Asay wrote: Hi Folks, Is it possible to store html styled text in an xml document and then successfully retrieve the text with html markup intact? ... comments Here are my comments. Some of the text is colored font color=#FFred/font amp; font

Re: HTML tags in XML

2006-03-21 Thread Devin Asay
On Mar 21, 2006, at 9:12 AM, Trevor DeVore wrote: On Mar 21, 2006, at 7:43 AM, Devin Asay wrote: Hi Folks, Is it possible to store html styled text in an xml document and then successfully retrieve the text with html markup intact? lt;snipgt; ;-) Is there a way to do this? Will I have

Re: HTML tags in XML

2006-03-21 Thread Mark Wieder
Trevor- Tuesday, March 21, 2006, 8:12:11 AM, you wrote: You need to escape , ', , and when entering data into an XML node. I can't remember if RevXML has any handlers for this or if you just have to do it by hand. For an example of the escape characters just do a Google search for xml

Re: HTML tags in XML

2006-03-21 Thread Ken Ray
On 3/21/06 9:43 AM, Devin Asay [EMAIL PROTECTED] wrote: Is it possible to store html styled text in an xml document and then successfully retrieve the text with html markup intact? Yes. You need to use a CDATA node instead of a normal element node. The markup looks like this: ![CDATA[bThis

Re: HTML tags in XML

2006-03-21 Thread Trevor DeVore
On Mar 21, 2006, at 9:34 AM, Mark Wieder wrote: Trevor- Tuesday, March 21, 2006, 8:12:11 AM, you wrote: You need to escape , ', , and when entering data into an XML node. I can't remember if RevXML has any handlers for this or if you just have to do it by hand. For an example of the

Re: HTML tags in XML

2006-03-21 Thread Trevor DeVore
On Mar 21, 2006, at 9:41 AM, Ken Ray wrote: My XML Library handles getting and setting CDATA information for a node quite easily Ken, This is good to know. The RevXML external doesn't handle CDATA, does it? I seem to recall that when I tested using CDATA with RevXML it didn't work

Re: HTML tags in XML

2006-03-21 Thread Ken Ray
On 3/21/06 11:51 AM, Trevor DeVore [EMAIL PROTECTED] wrote: On Mar 21, 2006, at 9:41 AM, Ken Ray wrote: My XML Library handles getting and setting CDATA information for a node quite easily Ken, This is good to know. The RevXML external doesn't handle CDATA, does it? I seem to

Re: HTML tags in XML

2006-03-21 Thread Trevor DeVore
On Mar 21, 2006, at 10:30 AM, Ken Ray wrote: Actually, you can *retrieve* CDATA with revXMLNodeContents, but you can't *set* it. That's part of the reason I'm still updating my XML Library. ;-) ... Trying it with CDATA tags already around it: revPutIntoXMLNode

Re: HTML tags in XML

2006-03-21 Thread Mark Wieder
Trevor- Tuesday, March 21, 2006, 9:43:36 AM, you wrote: On Mar 21, 2006, at 9:34 AM, Mark Wieder wrote: Trevor- Tuesday, March 21, 2006, 8:12:11 AM, you wrote: You need to escape , ', , and when entering data into an XML node. I can't remember if RevXML has any handlers for this or if

Re: HTML tags in XML

2006-03-21 Thread Trevor DeVore
On Mar 21, 2006, at 11:10 AM, Mark Wieder wrote: Yes and no. As long as you have the data stored properly encoded then you should be able to decode it on the way out: set the htmlText of field grunt to urlDecode(xmlData) Oh, I see what you are getting at. Yeah, that would work but wouldn't

Re: HTML tags in XML

2006-03-21 Thread Stephen Barncard
See if URLEncode() and URLDecode() will package and recover your text and/or htmltext to XML's liking...it works for me on other stuff... sqb On Mar 21, 2006, at 7:43 AM, Devin Asay wrote: Hi Folks, Is it possible to store html styled text in an xml document and then successfully retrieve

Re: HTML tags in XML

2006-03-21 Thread Mark Wieder
Trevor- Tuesday, March 21, 2006, 11:19:29 AM, you wrote: On Mar 21, 2006, at 11:10 AM, Mark Wieder wrote: Yes and no. As long as you have the data stored properly encoded then you should be able to decode it on the way out: set the htmlText of field grunt to urlDecode(xmlData) Oh, I see