[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

CDATA with XML problem in AS3

Posted on 2010-08-24
4
Medium Priority
?
1,015 Views
Last Modified: 2013-11-11
I have this on my XML file and I'm wondering if is possible?

<contact contact_fr="Text de la page Contact" contact_en=<![CDATA["blb<br>bla<br>more bla"]]>/>

so I can load the text as HTML IN AS3
0
Comment
Question by:offrenbaruna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
blue-genie earned 375 total points
ID: 33514456
sadly no. you can't use cdata on attributes.
0
 

Author Comment

by:offrenbaruna
ID: 33514697
grrrrrrr !!! thanks blue-genie
0
 

Author Closing Comment

by:offrenbaruna
ID: 33514712
there was no why explanation !
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 33515200
hey good point. I've always just accepted it as one of those can't be done, blame it on whoever developed SGML/XML standards. so had a quick google.

found this on wikipedia,
CDATA in DTDs
[edit] CDATA-type attribute value

In Document Type Definition (DTD) files for SGML and XML, an attribute value may be designated as being of type CDATA: arbitrary character data. Within a CDATA-type attribute, character and entity reference markup is allowed and will be processed when the document is read.

For example, if an XML DTD contains

<!ATTLIST foo a CDATA #IMPLIED>

it means that elements named foo may optionally have an attribute named "a" which is of type CDATA. In an XML document that is valid according to this DTD, an element like this might appear:

<foo a="1 &amp; 2 are < &#51; &#x0A;" />

and an XML parser would interpret the "a" attribute's value as being the character data "1 & 2 are < 3".

so maybe if you use DTD you can.
will try it at the office tomorrow as well.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question