Answer the question
In order to leave comments, you need to log in
How to work with XML data in Django?
Hello, I am writing a Django application. The application sends an XML request and receives an XML response, which looks something like this:
<Root>
<Header>Header data</Header>
<Main>
<Product>
<Name>Name1</Name>
<Description>Description1</Description>
</Product>
<Product>
<Name>Name2</Name>
<Description>Description1</Description>
</Product>
</Main>
</Root>
Answer the question
In order to leave comments, you need to log in
1. You need to communicate with XML at the server-server level.
2. Having received the data, put it in a table and pass it to the user in the usual form in the browser.
3. put the results of form processing into django, post-process the data, and then transfer it to another server.
with this scheme of work, you will always know what came in, what the user added or changed, and what went to another server.
You need to study well serialization and desirilization of objects well and then decide how to do it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question