Skip to content

CDATA support #214

Open
Open
@Programmierschmied

Description

@Programmierschmied

Dear developers,

I have to use mixed CDATA contents. It means that the node can have CDATA or text or both mixed.
I am not able to change the XSD Schema for a new simply type. For a fast solution I added a regex detection for the use of cdata in the jsonix.js, but I don't think that this is a good solution.
Is there a way to keep CDATA from XML file?

My fast solution:
if (this.asCDATA && value.match(/<.+>/g) != null)

Best regards,
Justin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions