Is there a way to set the item to be focused within the XML so that we don’t have to call tree.focusItem(itemStr) after the load?
Unfortunately it is not possible.
You can store such info in userdata and use onXLE event, which checking userdata and focusing item based on it. In such case data may be defined as part of XML.