[cl-xmlspam-devel] Problem with parsing xmlns="http://...." attributes

Pavel G. Koukoushkin k.pavel.g at gmail.com
Thu Apr 29 08:27:55 UTC 2010


Hi!

I found the problem. When I try to parse such xml:

<booking id="..." ...>
<GetAgreementCredentialsResponse>
<credentials agencyId="123" xmlns="http://....">

with this code

(defun extract-agency-data (data)
  (with-xspam-soap-body data
    (element :|GetAgreementCredentialsResponse|
             (element :|GetAgreementCredentialsResult|
                      (element :|credentials|
                               (attribute "agencyId"
                                 _))))))

And it crashes, because nil is passed to make-qname0 to second
argument (it must be attribute name)

-- 
С уважением, Кукушкин Павел.
Программист ООО "Ехать"




More information about the cl-xmlspam-devel mailing list