PDA

View Full Version : reading xml with <br/> with php?


arual
02-17-2008, 07:15 PM
Hello:

this is a pretty basic question, i suppose, but since i canīt get it to work from flash directly, I figured I could get a php file to read this attribute and then pass it to flash as a variable.

Here is the xml (just an example taken from the tutorials):

<kungfu>
<monkey roca="any text<br/>fsdfadf">Monkey style is deceptive and versatile. <br/>It is generally meant for smaller size persons.</monkey>

</kungfu>


I canīt get flash to displayl <br/> when it s part of an attribue. If I can get php to read it, and pass it as a variable to flash, I guess i could solve the problem

thank you

inhan
02-19-2008, 12:52 AM
You can't use tags in the attribute values as far as I know. Moreover use of special characters such as < and > might be causing this problem.

ASWC
02-19-2008, 12:57 AM
the attribute should be declared as CDATA in the DTD.