"sudo port install libxml2" ought to give you the necessary files. What output do you get from running "pkg-config libxml-2.0 --cflags"? Is there a file "/opt/local/include/libxml2/libxml/tree.h"?