Open gregbaker opened 1 year ago
Upon further investigation, the released 0.3.0 code has is_empty: false
in the ContentRelaxed::EmptyElemTag
case: https://docs.rs/xml_oxide/latest/src/xml_oxide/sax/parser.rs.html#520
But the master branch has is_empty: true
: https://github.com/fatihpense/rust_xml_oxide/blob/master/src/sax/parser.rs#L545
Unless I'm missing some intent of the attribute, the
.is_empty
attribute isn't be set to true for empty XML elements. I believe the given XML and the commented-out XML here are indistinguishable in xml_oxide as a result.That produces this output, but I think the second line should have a "true".