Alternatively you can use the xml Element Tree (included in python
2.5) library for building and parsing your xml file:

http://effbot.org/zone/celementtree.htm

Then of course use urllib/urllib2 (a good reference is here:
http://www.voidspace.org.uk/python/articles/urllib2.shtml)

Dave

On Jul 9, 9:39 am, "Norman Harman" <[EMAIL PROTECTED]> wrote:
> Bobby Roberts wrote:
> > We are using a payment gateway  for usaepay.com to process credit
> > cards.  Does anyone have experience with this?  I'm trying to find a
> > good resource for posting XML to another site but i'm coming up short
> > with how to do this in django and python.
>
> Create a template.xml pass it and a context with your variables into
> render_to_stringhttp://www.djangoproject.com/documentation/templates_python/#the-rend...
>
> Then use Python stdlibhttp://docs.python.org/lib/module-urllib2.htmlto
> POST request.
>
> --
> Norman J. Harman Jr.
> Senior Web Specialist, Austin American-Statesman
> ___________________________________________________________________________
> You've got fun!  Check out Austin360.com for all the entertainment
> info you need to live it up in the big city!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to