开发者

the efficient and accurate way of parsing a web html to text field with formating?

i want to parse the web html to flex text field i have three approaches in mind to do soo

  1. to use string function splice etc. to replace tags with the one which text fields can understand but is it too complex and processing over head is there that reduces the efficiency but i have max control to do changes what i needed.

  2. parsing the html to xml and then use this as the text input to text field what about the efficiency and control need to know about from this question.

  3. regular expressions .

which one will be the most suitable in paring the web text.

help required

regards开发者_Python百科.


I'd suggest to completely change your approach. If you need a simple HTML to be displayed, then you can directly parse it by the flash/flex. In other cases, when you have a complex HTML page(s), then you should use IFrame. That's really simple and efficient approach and could be very useful in your case. Here you can find its description: Flex and Iframe,Flex Iframe Project site.

Good luck!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜