add domimplementation->hasFeature() add formatOutput property (extends DOM) call xmlFreeDoc when doc is no longer referenced rather than custom code save and savexml now format based on formatOutput property
re-work of internal object handling
fixes crash on sample script rob sent me
PHP5 only