Following Doug's suggestion, the well-formed XML produced is more backwards compatable with non-XHTML browsers. Paul