OpenCV CascadeClassifier

I ran trainCascade on my Linux virtual machine and got an xml file, but when I try to run it on the Beaglebone I get the following error.
Parsing Error : valid xml should start with <?xml....?>