sorry for the newbie question, I need to parse an ...
# serialization
e
sorry for the newbie question, I need to parse an xml into a (data) class and I'm using xmlutil
Copy code
<?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
Copy code
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 = 3
What am I missing?