in reply to Byte-level file inspection?

I am afraid that you have not understood what "junk after document element" means. It does not mean at all that there are weird characters in the document. An XML document should have one, and only one root element, so anything after the end of the first element should not be there and is reported as junk. It looks like your document is missing a wrapping tag, the "one to tie them all":

This is not an XML document:

<cd id="cd1">...</cd> <cd id="cd2">...</cd> <cd id="cd3">...</cd>

You need this:

<cd_list> <cd id="cd1">...</cd> <cd id="cd2">...</cd> <cd id="cd3">...</cd> </cd_list>

And you don't need to do byte-level file inspection at all.

By the way, you asked basically the same question on c.l.p.m a little while ago and got 2 answers which explained the exact same thing, so I expect you already fixed your problem, and you don't need to link your way to examin a file to the "junk" message, which might mislead other people having the same problem.