Skip to content

CData gets ignored #190

Open
Open
@KaiTeuber

Description

@KaiTeuber

Hi,
I'm trying to parse the following XML:
<Model int="123" bool="true"> <![CDATA[string]> </Model>

Into this struct:
struct Model: Codable { let string: String let int: Int let bool: Bool enum CodingKeys: String, CodingKey { case int case bool case string = "" } }

But string stays empty. If I replace <![CDATA[string]> with string all things work as expected.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions