arg20
arg20

Reputation: 4991

Python xml marshalling

I'm learning Python, my background is Java EE. I have used JAXB before, where I can basically define a regular class, throw some annotations in there and then use JAXB to marshall objects to xml. This means I am not concerned with creating root elements, nodes, etc. but merely writing the Java class and anotating it here and there. Is there anything like this for Python?

Upvotes: 7

Views: 7774

Answers (2)

Alastair McCormack
Alastair McCormack

Reputation: 27724

PyXB seems to be the closest thing to JAXB although I haven't used it yet. I use lxml at the moment and find it works well. Amara was promising but seemed to stagnate.

Upvotes: 3

Anuj Gupta
Anuj Gupta

Reputation: 10526

Here are a few:

Upvotes: 7

Related Questions