[BangPypers] XML manipulation using ElementTree

Vikas BN vikas.bn at gmail.com
Fri May 7 14:03:22 CEST 2010

Can you paste the traceback of the error you are getting?

On Fri, May 7, 2010 at 4:32 PM, Keith Chapman <keith.chap at hotmail.com>wrote:

>    request.set(
>        "<m:getQuote xmlns:m="http://services.samples/xsd">
>           <m:request>
>              <m:symbol>" + symbol + "</m:symbol>
>           </m:request>
>        </m:getQuote>"
>        )
>    return request

  Aside, you might want to use """ (triple quotes) for multi-line strings,
like so:
 """<m:getQuote xmlns:m="http://services.samples/xsd">""" (so that the
  quotes within the string is kept intact.)


More information about the BangPypers mailing list