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

Add an emitEmpty option. #231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

lddubeau
Copy link
Contributor

The option emitEmpty cause sax to emit cdata and comment events even if the respective constructs were empty in the XML.

Prior to this commit, sax does not emit cdata or comment events if the respective constructs are empty in the XML. Some projects need to know that a CDATA section or a comment was present in the XML even though they were empty.

The default is false so this changes behavior only for those who explicitly use it.

The option emitEmpty cause sax to emit `cdata` and `comment` events
even if the respective constructs were empty in the XML.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant