在NSTableView中显示HTML表格标签内容
我正在一个项目中工作,我需要在 NSTableView
中表示网页的表格内容。我尝试使用 NSXMLParser ,但它只适用于 XML 代码,因为它的名称标签更具体,但在 HTML 中,有很多“td”对象和“a”对象。我读到 Webkit
可以帮助解决这个问题,但我是 Cocoa 和 MacOS 编程的初学者,对此我有点迷失。
如果有人关心或需要“HTML 解析器”或某种用 Cocoa 解释 HTML 的方法,我找到了一些外部库。 那个对我来说效果很好。
I'm working in a project and I need to represent table contents of a webpage in a NSTableView
. I tried with an NSXMLParser
but it only works fine with XML code, cause it's more specific with the nametags but in HTML there's a lot of "td" objects and "a" objects. I read that Webkit
can help with that, but I'm a beginner with Cocoa an MacOS programming, and I'm a bit lost with that.
If anybody cares or needs also an "HTML Parser" or some way to interpet HTML with Cocoa, I found some external libraries. That one works nice for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论