开发者

How do nested tags work in E4X?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜