Bars, note values and rests
MIDI times are in ticks, not note values. The converter lines the notes up with the beat, picks the note value that matches each length, fills the gaps with rests and ties notes across bar lines. Notes that start together become chords, with the key and time signature taken from the file.
Piano, melodies and multi-track files
Each MIDI track becomes its own staff, named after the track when the file has names. A melody from a song file is a quick way to get a lead sheet: delete the other tracks in your notation program after opening the MusicXML.
MIDI from a DAW or a keyboard
Exported from GarageBand, Logic, Ableton or FL Studio? Quantise the region to the shortest note you play (often 16ths) before export, and the notation comes out clean. Recorded live on a keyboard without a click, the timing drifts and you get tied odd values; recording to a metronome solves that. Need the reverse? Turn printed music into MIDI with sheet music to MIDI.