Skip to content

Add an emitEmpty option.#231

Open
lddubeau wants to merge 1 commit intoisaacs:mainfrom
lddubeau:emit-empty
Open

Add an emitEmpty option.#231
lddubeau wants to merge 1 commit intoisaacs:mainfrom
lddubeau:emit-empty

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