在NSTableView中显示HTML表格标签内容

发布于 2025-01-04 18:30:38 字数 360 浏览 4 评论 0原文

我正在一个项目中工作,我需要在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文