Unfortunately, PHP 4's XML support was somewhat limited. Some extensions did not prove to be very stable. This changed drastically with PHP 5 and a revamped XML support. Therefore, the main focus of this chapter is on PHP 4. In PHP 5.1, some new features will be added that are already covered in this chapter.