Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self-closing xml tags #835

Closed
amandahugandkiss opened this issue Dec 28, 2024 · 2 comments
Closed

self-closing xml tags #835

amandahugandkiss opened this issue Dec 28, 2024 · 2 comments
Labels

Comments

@amandahugandkiss
Copy link

amandahugandkiss commented Dec 28, 2024

Is there a mechanism within quick-xml to capture elements (events) which are self-closing:

<Element DateUpdated="2022-11-19" DateCreated="2022-11-13"/>

I vaguely recall seeing notation that a start and end tag is required but cannot locate it at the moment and did scan the issues list unsucessfully.

Thank you.

@Mingun
Copy link
Collaborator

Mingun commented Dec 28, 2024

Yes, of course. I assume that you enabled expand_empty_elements configuration option of a Reader which converts all Empty events to Start and End events.

@amandahugandkiss
Copy link
Author

Much appreciated -- clearly missed that detail. Thank you

@Mingun Mingun closed this as completed Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants