Alternatives to libxmljs [closed]
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 questionGoal: 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
精彩评论