MusicXML, MXL, MIDI and PDF compared
MusicXML (.musicxml or the older .xml) is plain text describing the notation: notes, rests, clefs, slurs, dynamics and layout hints. MXL is the same thing compressed. MIDI only stores what is played, not how it is written, so it loses spelling, voices and articulation. A PDF is just a picture. For moving a score between programs, MusicXML is the one format that keeps the music editable.
Convert any source
Start from what you have: a phone photo of a printed page, a PDF, scanned or exported, or a MIDI file from a DAW. All three come out as the same kind of result: a MusicXML file, an engraved PDF and a MIDI file, plus playback in the page so you can check it before downloading.
Editing after the conversion
Open the file in your notation program and fix what recognition missed: a wrong accidental, a missing tie, a misread rhythm. Then do what MusicXML makes easy: transpose for a B♭ or E♭ instrument, extract a single part from a score, change the layout for larger print, or add fingerings for a student. MuseScore does all of this for free.