开发者

Alternatives to libxmljs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

开发者_如何学编程

Closed 2 years ago.

Improve this question

Goal: Use Node.js to access a web page, manipulate the DOM using xpath syntax, and print the new DOM.

libxmljs is okay, but it has several dependencies which NPM doesn't resolve. Which libraries do you use to xpath arbitrary HTML?


I develop libxmljs on Mac OS X, so this shouldn't be your major hurdle. You need the libxml2 library and the scons utility in order to build successfully. Both of these are available via macports or homebrew. Once you have libxml2, make sure the xml2-config command-line utility is in your path. That's what I use to get the appropriate build flags.

@mcandre I believe you're the same person who submitted a ticket to the github repo. I hope you've gotten things worked out. If not, give more info about your problem. https://github.com/polotek/libxmljs

:Marco

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜