开发者

How do nested tags work in E4X?

开发者 https://www.devze.com 2023-01-05 01:06 出处:网络
Suppose I开发者_JS百科 have the following XML: var foo:XML = <root><a>this is a <b>special</b> case</a></root>

Suppose I开发者_JS百科 have the following XML:

var foo:XML = <root><a>this is a <b>special</b> case</a></root>

Is there any way to detect the position of <b> relative to the contents of <a> without a custom subparser?


You should wrap your data inside CDATA tags, So it isn't based as XML.

Then you can set a textfields htmlText property to get the formatting.

0

精彩评论

暂无评论...
验证码 换一张
取 消