My guess is that it's some incompatibility between the way OSX formats the XML file and how MB, as a Windows program, expects the XML file to be formatted, but that is just a guess.
It is choking on Line 2 of the XML file, and that line doesn't contain any actual data about your library. This is why I asked what your line 2 looked like, which you didn't answer.
I have an old iTunes XML file, and this is Line 2 of it:
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
The fact that is is choking on this rather than actual data tells me it's a file problem.
because this way is not working for me.
I don't know what "this way" is because you've never actually said what you've done or what you're doing. I don't think I can provide further help but maybe someone else can if you clearly and with detail lay out exactly what steps you are taking, what steps you have taken, and what the results of each have been.