Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about xml modes #735

Open
noahbald opened this issue Apr 10, 2024 · 2 comments
Open

Question about xml modes #735

noahbald opened this issue Apr 10, 2024 · 2 comments
Labels

Comments

@noahbald
Copy link

I'm looking through the AttrError and noticed several references to iteration/parsing modes

This error can be raised only when the iterator is in XML mode.

...depending on the parsing mode.

I'm curious how this can be done. I've tried searching through the project and docs for how these modes can be selected but haven't found anything in particular.

Is this mode something I can add via a config option, or does it depend on something else like a doctype, html tag, namespace, etc? eg If I want to parse in HTML mode or something.

@phdavis1027
Copy link

Based on the top-level crate docs, I think this refers to the split between manual serialization/deserialization via Reader/Writer APIs on the one hand, and the serde API on the other. The former would be what is referred to here as XML mode. (I'm not a maintainer, so I could be wrong, but this is my reading of this.)

@Mingun
Copy link
Collaborator

Mingun commented Apr 20, 2024

This sentence refers to the new and html methods of Attributes struct and corresponding attributes and html_attributes iterators. You choose the mode by using of one of those methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants