0

I need to generate a standard XML as follows using python:

<?xml version="1.0" encoding="UTF-8"?>
<req:ShipmentValidateRequestAP xmlns:req="http://www.example.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.com/schema">

<root>
    <doc>
        <field1>some value1</field1>
        <field2>some vlaue2</field2>
    </doc>
</root>

</req:ShipmentValidateRequestAP>

And this needed to be requested to a server URL:

https://sampletest-ea.example.com/XMLShippingServlet

Can anybody please help me to implement this ?

4

1 Answer 1

1

you can finish your work by the help of http://docs.python.org/2/library/xml.dom.minidom.html. It is a simple libary

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.