[BangPypers] [Error] AttributeError: Document instance has no attribute

Subhodip Biswas subhodipbiswas at gmail.com
Fri Aug 5 18:29:55 CEST 2011


Hi,

What I was trying to do is parse the suds response. The response is a
sax document. I need some specific values from that xml document. I
didn't wanted to use sax as I am using minidom somewhere else.

I managed to convert the whole stuff in a string using str(myresponse).
Still stuck but thats a suds related issue i guess.


is there a better way of parsing suds response or sax document?  any
pointer or document will help.


-------------
Regards
Subhodip Biswas


GPG key : FAEA34AB
Server : pgp.mit.edu
http://subhodipbiswas.wordpress.com
http:/www.fedoraproject.org/wiki/SubhodipBiswas



On Fri, Aug 5, 2011 at 4:07 PM, Amit Sethi <amit.pureenergy at gmail.com> wrote:
> On Fri, Aug 5, 2011 at 3:48 PM, Subhodip Biswas
> <subhodipbiswas at gmail.com> wrote:
>> Hi all,
>>
>> I am using suds as a WSDL Consumption client. I get proper response in
>> suds.sax.document format.
>
> I am not exactly sure what you are trying to do but isn't sax supposed
> to be read on the fly , I do not think toxml,tostring etc functions
> should be there . I think you are supposed to specify handler for each
> tag and i don't think you can  do a
> getElementsByTagName kind  of thing. Although I think you need to give
> more detail as to what you are trying to do.
>
>
>
> --
> A-M-I-T S|S
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>


More information about the BangPypers mailing list