Use of vtkXMLImageDataReader

thank you for your reply. I will try it!

Do you know what is causing this error?

Cannot read property 'getPointData' of undefined

Is it a matter of the order of the code? An error occurs intermittently.