- 
                Notifications
    
You must be signed in to change notification settings  - Fork 98
 
Proof of concept for namespace deserialization #95
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
Conversation
| 
           Isn't  XmlEvent::StartElement { ref name, .. } => seed.deserialize(becoming XmlEvent::StartElement { ref name, .. } => seed
  .deserialize(I would rather XmlEvent::StartElement { ref name, .. } =>
  seed.deserialize( | 
    
There was a problem hiding this 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.
| 
           wondering if a decision has been made regarding support for namespaces?  | 
    
| 
           @reneherrero, I plan to add support based on a spike I did on https://github.com/punkstarman/serde-xml. Time is lacking atm  | 
    
| 
           @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.  | 
    
| 
           @reneherrero, namespace support was a crunchy problem, but I managed to find a way of supporting it by changing the API ever so slightly.  | 
    
| 
           @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:  | 
    
| 
           I want to bring up a discussion on this again. Is it in progress, or can I pick it up?  | 
    
| 
           I'm curious. Is anything happening in this space?  | 
    
| 
           I've forked it to include the namespace in the attribute name as a workaround for me: #216 example:  | 
    
Hi there, I'm hoping to get some feedback with respect to the issue: #92.
Also, I apologize for the noise due to rustfmt.