To start, an AppleID does not really determine what is on your computer. Furthermore, what determines what iTunes displays is not what is actually on your computer, it is what iTunes thinks is on your computer. iTunes uses a database file entirely to tell it what is on the computer. It assumes this file is up to date and correct. Additionally, if you open a different library file iTunes only knows what that one tells it. So to sum up, if you add a track to iTunes, iTunes makes a note of it in the library database (and, by the way, iTunes uses the .itl version, not the .xml), puts that file in a location it knows about, then relies purely upon that information in the future. If something ends up moving that file it may still be on the computer but iTunes won't be able to find it when it looks for it in the database location and will give you a broken link ( ! ).
Okay, you may have created a different AppleID but that is a separate issue.
What to do about missing media is up to you. Do you have more than one folder with a set of library files?
About iTunes library files - https://support.apple.com/HT201610 - Does not mention that a complete working library also includes other files and folders also in the iTunes folder.
More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
Where are my iTunes files located? - http://support.apple.com/kb/ht1391
iTunes 9 [and later]: Understanding iTunes Media Organization - http://support.apple.com/HT201979 - plus supplemental information about organizing to new structure https://discussions.apple.com/message/26404702#26404702
Image of folder structure and explanation of different iTunes versions (turingtest2 post) - https://discussions.apple.com/docs/DOC-7392 and making an iTunes library portable.
You can, if you wish to, drag the media folder from any old library to the Automatically Add To iTunes folder of the other library. This could potentially result in many duplicates but it is up to you.