Fetch all ports from the XML template.