private static IntPtr InitFromXmlEx(string xmlFile, out IntPtr hScriptNode)
{
IntPtr pContext;
EnumerationErrors errors = new EnumerationErrors();
int status = SafeNativeMethods.xnInitFromXmlFileEx(xmlFile, out pContext, errors.InternalObject, out hScriptNode);
WrapperUtils.CheckEnumeration(status, errors);
return pContext;
}