In order you dont 't want to use the bundled expat library configure PHP --with-expat-dir=DIR, where DIR should point to the base installation directory of expat.
Il supporte trois types de codage différents, disponibles aussi sous PHP: