elect
11/04/2022, 9:09 AM<?xml version="1.0" encoding="UTF-8"?>
<registry>
<comment>
Copyright 2015-2022 The Khronos Group Inc.
SPDX-License-Identifier: Apache-2.0 OR MIT
</comment>
I started with
fun parse(text: String) {
val format = XML {}
val registry = format.decodeFromString<Registry>(text)
}
@Serializable
data class Registry(
val comment: String,)
but I get:
Execution failed for task ':generateCode'.
> Could not find a field for name (vkk.Registry) Registry/comment (Element)
candidates: Comment at position Line number = 3What am I missing?