Re #8487. Use Poco::AutoPtr in place of manual calls to release().
Re #8487. Remove trial print added in #9118 & left in by mistake.
Re #8487. Don't leak memory due to Poco calls.
Re #8487. Ensure Poco XML call doesn't leak memory.
Re #8487. Eliminate Poco-related leaks in test.
Re #8487. Replace manual calls to release with AutoPtr use.
Re #8487. Replace tabs with spaces.

No code changes.
Re #8487. Replace manual call to release with AutoPtr.
Re #8487. Replace tabs with spaces.

No code changed.
Re #8487. Hold document object in AutoPtr instead of raw pointer.
Re #8487. Minimize the number of headers included.
Re #8487. Replace manual calls to release with AutoPtr.