Skip to content

Conversation

@estk
Copy link

@estk estk commented Jan 30, 2019

Hi there, I'm hoping to get some feedback with respect to the issue: #92.

Also, I apologize for the noise due to rustfmt.

@punkstarman
Copy link
Collaborator

Isn't rustfmt producing some strange line breaks?

XmlEvent::StartElement { ref name, .. } => seed.deserialize(

becoming

XmlEvent::StartElement { ref name, .. } => seed
  .deserialize(

I would rather

XmlEvent::StartElement { ref name, .. } =>
  seed.deserialize(

Copy link
Author

@estk estk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@punkstarman I really dont know about the style stuff, I feel like it should be as is specified in the rustfmt.toml file. I have my editor set to use that. Anyway, I'm pretty happy with the api, if youre still not interested in this feature I'll just maintain my fork.

@reneherrero
Copy link

wondering if a decision has been made regarding support for namespaces?

@punkstarman
Copy link
Collaborator

@reneherrero, I plan to add support based on a spike I did on https://github.com/punkstarman/serde-xml. Time is lacking atm

@reneherrero
Copy link

@punkstarman No worries, I understand.

To be honest, I think you have an uphill battle. I have a feeling you're going to face the "lowest common denominator" problem due to the dependency on serde. I tried Yaserde but that didn't let me cross the finish line either... Fact of the matter is that XML can be quite elaborate and supporting every feature will likely require a dedicated library. Just my two cents.

I switched to libxml and that got me where I needed to get (also supports XSLT), granted adds an C lib dependency, quite a bit more verbose and nowhere as elegant.

@punkstarman
Copy link
Collaborator

@reneherrero, namespace support was a crunchy problem, but I managed to find a way of supporting it by changing the API ever so slightly.

@reneherrero
Copy link

@punkstarman I have been wrong before... you're one brave dude :)

Let me know when you have something that is testable. Would like to try it with the XML files like these:

@oneslash
Copy link

I want to bring up a discussion on this again. Is it in progress, or can I pick it up?

@wt
Copy link

wt commented Nov 16, 2023

I'm curious. Is anything happening in this space?

@Cabbache
Copy link

I've forked it to include the namespace in the attribute name as a workaround for me: #216

example:

#[serde(rename = "namespace:attrname")]
namespace_attrname: String,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants