Cognitive Radio Architecture: The Engineering Foundations of Radio XML