Mingun
Mingun
No, serde requires more work. Suggested approach lefts to the user the decision where to stop reading binary data and return to reading XML events. In serde API you should...
Yes, you understand correctly. You even don't need to disable `check_end_names` because when you read from `.stream()`, you are effectively cut some data from seeing by XML parser. As long...
While that may be needed in some cases, I think, that usually you shouldn't do that. `.stream()` returns an `impl BufRead`, so you can lookahead without consuming data. After all,...
You have problems in round-trips in JSON too, and I think in any other format, they just different. If take JSON as a base point, at least `#[serde(skip_serializing_if = "Option::is_none")]`...
For UTF-8 case you can use: ```rust use quick_xml::se::to_writer; use serde::Serialize; struct ToFmtWrite(pub T); impl std::fmt::Write for ToFmtWrite where T: std::io::Write, { fn write_str(&mut self, s: &str) -> std::fmt::Result {...
I think, that `Searcher` need `skip` method(s) that can be used to advance search positions without performing search. For example, [proof-of-concept of inplace unescape]( https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=2485c70b900bde91169e991b3ec9c1fa) requires this method to work...
I think, the best solution is to move read just after creating object, but then this can create a memory leak in C++98 target if `_read()` of an array item...
I totally agree that partial parsing is very useful feature and it shouldn't be removed in order to fix bug. Any solution that keeps it would be better. Another way...
> Hmm, I'm not really sure how to deal with this one. On the one hand, you've clearly demonstrated the problem. On the other hand, this is how class importing...
Also, `validation_expr_error` exception in C++ is dangerous because it store [reference](https://github.com/kaitai-io/kaitai_struct_cpp_stl_runtime/blob/084efdd08ed174b6f916df0a71a4b7d948f3f1a8/kaitai/exceptions.h#L219) to the stack variable `_` (and temporary variable before the fix), but this is another problem. Other exceptions also...