it's suggested to use the standard OpenCV's XML input/output API.