The requirement is to provide the source code to extract the measures and notes along with attributes in any MusicXML file.
The returned array can be muli-dimention or jagged but must be contiguous with the flow of music as indicated in the MusicXML score.
Each index of the array should contain all notes, rests, beat and beat-type information
Attached files are sample xml and some description.
The MusicXML specifiction is available from http://www.makemusic.com/musicxml/specification/