dealing with branches in fromXML