Made XmlPoke throw exception when it doesn't find any element to update/delete.

Plus some other minor improvements.