Recognize forward cards with an omitted protocol service ID from the root msg attributes. Decode attribute references once so resource IDs and nested lookup keys survive XML escaping, while preserving ordinary XML when the root declaration is ambiguous. Refs #547, #556, #558. Co-authored-by: wanqing-last <[email protected]>