It sounds like you'll want to assign your second XML.onLoad
handler as part of the functionality performed by your first
In other words, write your first event handler function and
with the onLoad event of your XML instance.
When that handler executes, have it re-assign the onLoad
event to your
second function and then immediately perform the second load
trigger that second function).