Closed stodge closed 6 years ago
Oh dear, I'm sorry to hear that you're faced with that problem and I take it the XML is out of your control. I can't think of a way off the top of my head, but my initial thought would be to try abl different XML parser, like Faster XML Jackson or something else. Or if your using Android, TikXml https://github.com/Tickaroo/tikxml is good.
I think development for this library is abandoned, unfortunately.
Thanks. Though I think I managed to get it working with the use of the following and some other tweaks:
@Root(strict = false)
@Path("Name")
@Text(required = false)
public class Name {
Don't ask me why (no, please don't!) but the XML I need to parse has:
(The real field name has been changed to protect the innocent!)
Obviously, I'm getting the error:
Element 'Name' is already used with @org.simpleframework.xml.Element (etc)
My code is:
Any ideas how to work around this? Thanks (Love the project BTW).