Query Suggestion Options
Last word completion
Keyboard Layouts
GitHub

👀 While it's loading, feel free to check out the other repositories:

🔔 To get a notification when it's ready, leave your email here:

By entering your email, you agree to receive notifications and marketing-related emails

Filter by reset

4182 results 21 ms in tafia/quick-xml

Normalize namespace declaration values in NamespaceResolver::push

NamespaceResolver::push passed the raw value of each xmlns / xmlns:p attribute to add , so character references and predefined entities in a namespace declaration were never expanded. Namespaces in XML defines the namespace name as the normalized …

johnozler-huntjohnozler-hunt · 2026-11-19 · 1 · #1048

namespaces

Use a randomly keyed hasher in the attribute duplicate check

johnozler-huntjohnozler-hunt · 2026-11-19 · 1 · #1050

:warning: Please install the to ensure uploads and comments are reliably processed by Codecov. Codecov Report :white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 56.26%. Comparing base ( 4a56631 …

codecov-commentercodecov-commenter · 2026-11-19

Update maybe_xml dependency 0.3 -> 0.6

maybe_xml is still about 1.5x--2x faster that quick-xml in most tests, except those: rpm_other linescore test_writer_ident players Here is criterion report: comparison.zip

MingunMingun · 2023-10-17 · 1 · #668

Add new tests for syntax and ill-formed parser errors and fix... emm... errors

MingunMingun · 2023-11-22 · 1 · #684

bug

Codecov Report Attention: 20 lines in your changes are missing coverage. Please review. Comparison is base ( 64c4249 ) 65.14% compared to head ( 2c55638 ) 65.31%. Files Patch % Lines src/errors.rs 9.09% 10 Missing :warning: src/reader/mod.rs 93.81% 6 …

codecov-commentercodecov-commenter · 2023-11-22

With serde, is it possible to get unknown variant names outside of a deserializing error?

I'm using serde to deserialize a file format that looks something like this: <root> <list> <type1>content</type1> <type2>a new and exciting content type </type2> <!-- etc --> </list> </root> This is easy to implement and I've done so using an enum because …

DekkonotDekkonot · 2023-06-05 · 3 · #602

questionserde

How would I parse character references as literal bytes and not codepoints?

DekkonotDekkonot · 2025-05-09 · 4 · #667

I may be wrong, but it seems that you should use <element>&#x1F603;</element> instead. Character references are supposed to refer to the Unicode code points directly, not to bytes in some unspecified encoding. A non-normative confirmation of this can be …

MingunMingun · 2023-10-16

Lifetime issue in new unbuffered logic

I have been trying out the new alpha version and I think I stumbled upon a kinda-bug. Somehow something that should be possible is not, I think because of the way lifetimes are indicated in some methods. I'm trying to find a fix, but to reproduce the …

stevenroosestevenroose · 2022-08-15 · 3 · #329

unexpected Event::EOF

snmpboysnmpboy · 2025-06-13 · 2 · #867

questionserde

Please provide some details: What version of quick_xml you are using? Do you parse using borrowing or buffered reader (how you create a Deserializer )? The error comes from serde deserializer. What types are you deserializing? Do you have manual …

MingunMingun · 2025-06-13

Working with typetag for xs:choice / variant types?

This is a question, rather than an issue. I'd like to use typetag or a similar crate along with quick-xml, to deserialize a sequence of varying elements without hardcoding all the possible variants in an enum. <Data> <Foo a="abc" /> <Foo a="def" /> <Bar b …

furrzfurrz · 2025-07-22 · 1 · #880

questionserde

Using `flatten` and `rename="$value"` on adjacent fields causes error

ch1nqch1nq · 2024-06-11 · 3 · #326

3👍3

bugserde

I am also experiencing this. @Mingun , if you have any pointers, I can attempt a PR to fix.

avantgardnerioavantgardnerio · 2024-06-11

Add ability to deserialize serde types from `Reader`

When working with deeply nested xml, most of the time, we are only interested in a portion of the whole tree close to the leaf node. My idea is to extract the string of the target node and deserialize it with serde. But I can't find any convenient way to …

ndtoan96ndtoan96 · 2024-09-01 · 6 · #611

3👍3

enhancementhelp wantedserde

Document Serde attribute mapping

lntutorlntutor · 2026-08-16 · 4 · #998

enhancementserdedocumentation

:warning: Please install the to ensure uploads and comments are reliably processed by Codecov. Codecov Report :white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 55.96%. Comparing base ( e00ae5c …

codecov-commentercodecov-commenter · 2026-07-31

(De)serializing `xsi` attributes (`xsi:type`, `xsi:nil` etc.)

I'm currently working the following XML: <items> <Item xsi:type="Weapon">...</Item> <Item xsi:nil="true" /> <Item xsi:type="Shovel">...</Item> <Item xsi:nil="true" /> <Item xsi:nil="true" /> <Item xsi:nil="true" /> <Item xsi:type="Food">...</Item> </items …

furtidevfurtidev · 2024-10-15 · 2 · #822

Fix couple of bugs in serde deserializer

MingunMingun · 2022-12-12 · 3 · #523

bugserde

Codecov Report Merging #523 (2b9228d) into master (6347f3b) will increase coverage by 0.07% . The diff coverage is 72.72% . @@ Coverage Diff @@ ## master #523 +/- ## ========================================== + Coverage 61.70% 61.77% +0.07% …

codecov-commentercodecov-commenter · 2022-12-11

Document Serde attribute mapping

Closes #804 Clarifies that the Serde XML mapping applies to serialization as well as deserialization, and links both the serializer and event-attribute modules to the existing mapping guide. The attribute docs also point out named @ fields and flattened …

lntutorlntutor · 2026-08-16 · 4 · #998

enhancementserdedocumentation

#[serde(rename = "$value")] for Enum Variants

marcfirmarcfir · 2025-03-11 · 4 · #847

questionserde

What you trying to achieve? <A> <a>hjk</a> <b>88</b> </A> could be parsed into #[derive(Serialize, Deserialize, PartialEq, Debug, Clone, Default)] enum Choice { #[serde(rename = "A")] One { a: String, b: i32 }, #[default] Two, } (not tested)

MingunMingun · 2025-02-26

How to use value of e.name without temporary value dropped while borrowed error?

I'm new to Rust, I wanna store the name of the current tag in a variable, so I can create a HashMap using the name as key and its content as value, This is my code: fn parser() { let reader = Reader::from_file("12.xml"); if let Err(e) = reader { panic!("{ …

bangbaewbangbaew · 2023-08-10 · 2 · #628

question

Add reserved namespace bindings.

wtwt · 2023-09-06 · 33 · #545

Just so we know, the std versions of the oncecell stuff that I used in this PR is being stabilized as we speak. Part of the work landed in 1.70. The lazy initialized types have not yet landed in stable. However, that may happen in one of the next couple …

wtwt · 2023-06-07

Issue deserializing lists of enums using serde derive

I'm trying to parse xml with the structure <root><string>A</string><string>B</string></root> . I've tried to implement this using serde derive macros as its easier to maintain. The code I've tried is use serde::{Deserialize, Serialize}; #[derive(Serialize …

maddymakesgamesmaddymakesgames · 2024-02-08 · 1 · #712

serdearrays

Working with typetag for xs:choice / variant types?

furrzfurrz · 2025-07-22 · 1 · #880

questionserde

Well, you should expand derive macros and debug why this is happened. Think you are the most interested person here to do this

MingunMingun · 2025-07-22

Fix processing instruction parsing

Handle the situation with parsing <?pi >?> . Previously we erroneously consume only <?pi > and return error about not closed processing instruction.

MingunMingun · 2026-03-31 · 1 · #753

bug

Deserialize array failed when tags discontinuous

CaisinCaisin · 2024-09-28 · 1 · #809

questionserdearrays

Enable overlapped-lists feature.

MingunMingun · 2024-09-28

Reject empty attribute names

Reject empty attribute names in attribute parsing and serde serialization: Attributes ( Attributes , AttrError::ExpectedName ): Return AttrError::ExpectedName(pos) in both XML and HTML modes when = appears where an attribute name is expected (such as < …

ychampionychampion · 2026-11-19 · 7 · #1043

Make BytesCData decode method public

mematthiasmematthias · 2025-04-26 · 2 · #857

:warning: Please install the to ensure uploads and comments are reliably processed by Codecov. Codecov Report All modified and coverable lines are covered by tests :white_check_mark: Project coverage is 60.74%. Comparing base ( a9391f3 ) to head ( 4acc194 …

codecov-commentercodecov-commenter · 2025-04-26

Start rewrite serde serialization tests

Our serde serializer a far from ideal, but rewriting it requires a very long commit history, as I think (I already have 20 commits and I suspect that I'll double that count...). Because I'm not a big fan of long PRs, I propose that changes, that rewrites …

MingunMingun · 2022-09-04 · 3 · #468

serde

Deserializing to variant vector fields fails

MoSalMoSal · 2024-08-06 · 4 · #288

2👍2

bugserdearrays

I hit this error as well. I added a test case ( de::tests::enum_::internally_tagged::collection_struct::attributes ) in the vec-invariant branch on my fork. It fails with: ---- de::tests::enum_::internally_tagged::collection_struct::attributes stdout ---- …

cpickcpick · 2021-07-19

Remove ignored tests which produces warnings since serde 1.0.215

They are never will be implemented anyway. You need to implement deserialization manually if you want two xs:choice fields in your struct.

MingunMingun · 2024-11-22 · 0 · #833

Problem deserializing a struct that can be serialized

KorribanMasterKorribanMaster · 2024-06-03 · 2 · #752

bughelp wantedserdearrays

To check it out yourself i uploaded a simple example project to reproduce the error https://github.com/KorribanMaster/example_quick_xml

KorribanMasterKorribanMaster · 2024-06-03

`Reader` unnecessarily panics on 32-bit targets when the document size exceeds 4 GiB

quick_xml::reader::Reader<R: BufRead> allows reading arbitrarily large files without allocating much memory. I am using this in combination with flate2::read::GzDecoder in order to decompress and simultaneously parse very large XML files (several …

tniessentniessen · 2024-06-24 · 15 · #751

enhancementhelp wanted

Deserialization of a doctype with very long content fails

benoitryderbenoitryder · 2024-09-20 · 7 · #533

2👍2

bughelp wanted

This even happens if there's anything after the <!DOCTYPE> line: comments <?xml-stylesheet> Can we fix this? I would be up to do this since from_str won't work otherwise.

hecatia-eleguahecatia-elegua · 2023-05-19

How to pretty-print with serde?

Hello, I have the code below; when it runs, it results in the following output: seralized: <osm><node visible="true" timestamp="2022-02-17T13:55:16.184553291Z"><tag k="key1" v="value1"/><tag k="key2" v="value2"/></node></osm> I would like to print it in a …

troelsarvintroelsarvin · 2024-09-16 · 7 · #361

3👍3

enhancementhelp wantedserde

Deserializing $primitive= gives some problems.

stchyshstchysh · 2024-10-08 · 1 · #817

questionserde

What the quick-xml version you use? Support for $unflatten= prefix was removed in 0.27.0. You need to use the overlapped-lists feature in modern quick-xml and #[serde(rename = "$unflatten=...")] renames does not needed, remove them. Attributes should be …

MingunMingun · 2024-10-08

quick-xml requires implicitly enabled `serde/derive`

It's impossible to depend on quick-xml/serialize without depending on serde/derive Details: #472

loydloyd · 2022-12-21 · 8 · #473

1👍1

help wanted

Fix Windows test cases

ajtribickajtribick · 2021-08-11 · 3 · #259

Thanks! Indeed writing \r\n is probably a better default on windows,

tafiatafia · 2021-02-08

Fix serde 1.0.181 compatibility

This PR reworks our mapping of enums to XML. Actually, it is more correct, because examples in our documentation was not checked and not worked. Summary of changes Rules: In $value field the representation is always the same as top-level representation; …

MingunMingun · 2023-10-20 · 3 · #669

Fix incorrect test for 580 and get rid of allocations in hot path

MingunMingun · 2023-10-09 · 1 · #662

serdeoptimization

Codecov Report Merging #662 (9e8158c) into master (c79ad58) will increase coverage by 0.03% . The diff coverage is 84.78% . :exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@ ## master …

codecov-commentercodecov-commenter · 2023-10-07

Problems with reading XML from buffering reader

Here is an example fn main() { use quick_xml::events::Event; use quick_xml::reader::Reader; use std::io::BufReader; let xml = r###"<torrents> <torrent id="2" registred_at="2009.08.19 00:13:00" size="3"> <title>Заголовок</title> <torrent hash=" …

aegoroffaegoroff · 2022-09-10 · 9 · #469

1👍1

bughelp wanted

Reject empty attribute names

ychampionychampion · 2026-11-19 · 7 · #1043

You can include a fix for https://github.com/tafia/quick-xml/issues/1035 on top of this fairly easily, I think. Per the discussion on that issue however (which applies equally to this PR), generally we want to avoid baking these rules too deeply into the …

dralleydralley · 2026-11-14

Track dashes across chunks correctly in CommentParser

CommentParser , which DtdParser uses to skip comments in the internal subset of a DOCTYPE, picked its state after a slice without --> from the previous state and only the last byte of the slice. With one dash seen at the end of the previous slice, a slice …

johnozler-huntjohnozler-hunt · 2026-11-18 · 1 · #1049

Normalize namespace declaration values in NamespaceResolver::push

johnozler-huntjohnozler-hunt · 2026-11-19 · 1 · #1048

namespaces

:warning: Please install the to ensure uploads and comments are reliably processed by Codecov. Codecov Report :x: Patch coverage is 86.27451% with 7 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 54.20%. …

codecov-commentercodecov-commenter · 2026-11-18