Ombongi,
> however, if i pass xml data that DOES NOT contain sepid element, i get an
> error:
>
> Traceback (most recent call last):
> File "/usr/local/bin/receive.py", line 21, in
> sepid =
> content.find(".//{http://www.huawei.com.cn/schema/common/v2_1}sepid";).text
> AttributeError: '
Leonardi,
> i saved the above program from python shell into a file as "circle.py" . when
> i type "import circle" i get error..
Next time, please mention what kind of error you're getting.
Was it an indentation error? Because, as you pasted it, your code would lead to
one.
If I fix the ind