Someone should REALLY debug tinyXML2 a bit before throwing it at the public. Add some debug assertions to track misuse.
Fix tinyXML2 misuse; simplify scene saving code a little