avoid initializing XML parser resourced unless validating