Skip to content

Check tags existed or not by name #31

Description

@ntvinhdev

Sometimes I got xml files that contain self-closing tag like <element /> in order to indicate whether the data is checked at element. I checked the docs, but I found no way to check that tag is existed or not. To deal with that, I must define one empty object and use @Element() above the attribute using my object type. So my question is do we any ways to check tags existed or not by name? If not, do we have any better solutions than mine?

Many thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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