MiniXML provides a simple, API to generating and parsing XML. Its advantages are ease-of-use and the fact that no additional libraries are required. It comes with two independant implementations, 100% PHP and 100% Perl, which you can use seperately.