XSLT xsl:copy to copy the whole structure.
I am not familiar with that at all...can you give me an example?
will the image show up in a textArea component or does it have to be a dynamic text box?
Main Topics
Browse All TopicsI am having and issue of a picture showing up in the body of a attribute ( I think that is what you call it. I need for the user to be able to have and article what has a picture in the middle of it. i thought if you just pt the CDATA function in the middle or at the beginning that image would show up here is the code i have in xml format. the only thing that shows up is the actual code and not the image.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I'm afraid I can only help with that if you show how you currently load that very same CDATA section. It depends a lot on language and techniques used. If you do not currently use XSLT, no worries, we don't need to use it to get where we want to be. Can you show the line how you retrieve the CDATA that shows up as text?
The way the image will show up depends on where you place/load/put the output. I don't know, I need to see your code then first.
i am assuming you need to see the code in AS...
the xml is just your basic xml..like the code above..the data is going into a textArea box..i had it going to a dynamic text box but the fonts were getting out of wack..i figure if i can get the image showing up then i would worry about the fonts and font size working right...
thanks for your help
I have to admit that I'm not an AS programmer. My strengths are in XML, but I do a lot of JavaScript which is related, so let's see if we can fix this together.
If the "article" object is a textarea box and a textarea box is not supposed to interpret HTML, then try changing it to something that does allow HTML. You say your fonts went crazy, sounds to me that the font tag was actually working, at least a bit.
Let's stick with CDATA for a moment and try the crazy font again. If it does something font like, it finds the font tag (even if it goes wrong) and then it can find the <img> too, which we'll fix later. Try it with this, and perhaps you can screenshot what you've got and we take it from there (it will be enough information for me to understand whether we need to unescape or not).
here is what happens..just the code shows up...not weird fonts...
i have attached a screen shot but it might be hard to read or you can just go to the site
www.drunkinswine.com/theCa
thanks again
Ok, now I'm sure we're talking about the same subject.
Now, if we would remove the CDATA, the XML processor would see the <font> as nodes, not text. If we add them, like now, it is escaped text. Neither of these are handy. The actual path to a solution here is using innerText, but unfortunately that is not supported by ActionScript. Luckily someone created that: http://weblogs.asp.net/twa
Then we can do the following: remove CDATA, and change that line like so:
No problem, EE has a bit of "rules" and is a bit different than other forums in these respects. You can open your question by clicking "Request Attention" (next to your question) and then giving a small description on why you want it reopened. Usually, within 12 hours or so, a moderator will honor your request and you can choose your disposition again.
More on closing questions: http://www.experts-exchang
More on splitting: http://www.experts-exchang
More on reopening: http://www.experts-exchang
-- Abel --
Business Accounts
Answer for Membership
by: abelPosted on 2009-08-23 at 10:28:01ID: 25163445
You don't need CDATA at all, because CDATA actually makes your data literal, which is why you see the whole link as text (it is escaped).
Instead, remove the CDATA. The img tag is nothing more then valid XML, which is find to be placed there. Just make sure that you use something like the XSLT xsl:copy to copy the whole structure.