Organizing your rig with XML

Look for 'python xml parser' on google. Parse the UI to get the rig info that you need?