此擴充方法需要 libxml PHP 擴充。這表示需要使用 --enable-libxml ,僅管這將自動完成因為 libxml 是預設開啟的。
This extension uses an expat compat layer by default. It can use also expat, which can be found at » http://www.jclark.com/xml/expat.html. The Makefile that comes with expat does not build a library by default, you can use this make rule for that:
libexpat.a: $(OBJS) ar -rc $@ $(OBJS) ranlib $@