Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2025-06-28 | 3.1 kB | |
v0.38.0 - Better support of references (_..._) source code.tar.gz | 2025-06-28 | 1.5 MB | |
v0.38.0 - Better support of references (_..._) source code.zip | 2025-06-28 | 1.5 MB | |
Totals: 3 Items | 3.0 MB | 1 |
What's Changed
Significant changes
Now references to entities (as predefined, such as <
, as user-defined) reported as a new Event::GeneralRef
.
Caller can parse the content of the entity and stream events from it as it is required by the XML specification. See the updated custom_entities
example!
Implement whitespace behavior in the standard in Deserializer
, which says string primitive types should preserve whitespace, while all other primitives have collapse behavior.
New Features
- #863: Add
Attributes::into_map_access(&str)
andAttributes::into_deserializer()
whenserialize
feature is enabled. This will allow do deserialize serde types right from attributes. Both methods returns the same type which implements serde'sDeserializer
andMapAccess
traits. - #766: Allow to parse resolved entities as XML fragments and stream events from them.
- #766: Added new event
Event::GeneralRef
with content of general entity. - #766: Added new configuration option
allow_dangling_amp
which allows to have a&
not followed by;
in the textual data which is required for some applications for compatibility reasons. - #285: Add ability to
quick_xml::de::Text
to access text with trimmed spaces
Bug Fixes
- #868: Allow to have both
$text
and$value
special fields in one struct. Previously any text will be recognized as$value
field even when$text
field is also presented. - #868: Skip text events when deserialize a sequence of items overlapped with text (including CDATA).
- #841: Do not strip
xml
prefix from the attributes when map them to struct fields inDeserializer
.
Misc Changes
- #863: Remove
From<QName<'a>> for BytesStart<'a>
because nowBytesStart
stores the encoding in which its data is encoded, butQName
is a simple wrapper around byte slice. - #766:
BytesText::unescape
andBytesText::unescape_with
replaced byBytesText::decode
. Now Text events does not contain escaped parts which are reported asEvent::GeneralRef
.
New Contributors
- @Dr-Emann made their first contribution in https://github.com/tafia/quick-xml/pull/860
- @maxence-cornaton made their first contribution in https://github.com/tafia/quick-xml/pull/864
- @dizzyi made their first contribution in https://github.com/tafia/quick-xml/pull/866
- @eirnym made their first contribution in https://github.com/tafia/quick-xml/pull/870
- @ggodlewski made their first contribution in https://github.com/tafia/quick-xml/pull/865
- @curatorsigma made their first contribution in https://github.com/tafia/quick-xml/pull/873
Full Changelog: https://github.com/tafia/quick-xml/compare/v0.37.5...v0.38.0