Fix: UserDefault::createXMLFile with correct XML definition.

We should use NULL to create a default XML declaration.
If just pass "1.0" to it , will cause XMLDocument::NewDeclaration have an wrong xml header.