paramètrage pour la compilation Windows de libxml2, le wrapper pour perl est ici
C:\libxml2-2.6.23\win32>cscript configure.js compiler=msvc prefix=D:\libxml2-2.6.23\win32 include=D:\libxml2-2.6.23\win32\include
lib=D:\libxml2-2.6.23\win32\lib debug=yes iconv=no iso8859x=yes ftp=no http=noC:\libxml2-2.6.23\win32>nmake /a /f Makefile.msvc
La librairie statique s'appelle libxml2_a.lib et la dynamique libxml2.lib.
Utilisation de libxml2 pour parser un fichier HTML
Voici la configuration que j'utilise :
libxml2 version: 2.6.23
Created Makefile.
Created config.h.
XML processor configuration
---------------------------
Trio: no Thread safety: native FTP client: no HTTP client: no HTML processor: yes C14N support: yes Catalog support: yes DocBook support: yes XPath support: yes XPointer support: yes XInclude support: yes iconv support: no iso8859x support: yes zlib support: no Debugging module: yes Memory debugging: no Runtime debugging: no Regexp support: yes Module support: yes Tree support: yes Reader support: yes Writer support: yes Walker support: yes Pattern support: yes Push support: yes
Validation support: yes
SAX1 support: yes Legacy support: yes Output support: yes
XML Schema support: yes Schematron support: yes
Python bindings: no
Win32 build configuration
-------------------------
Compiler: msvc C-Runtime option: /MD Debug symbols: yes Static xmllint: no Install prefix: D:\libxml2-2.6.23\win32
Put tools in: $(PREFIX)\bin
Put headers in: $(PREFIX)\include
Put static libs in: $(PREFIX)\lib
Put shared libs in: $(PREFIX)\lib
Include path: D:\libxml2-2.6.23\win32\include
Lib path: D:\libxml2-2.6.23\win32\lib