accessing the XML attribute value noNamespaceSchemaLocation thru Python 2.5

Stefan Behnel stefan_ml at
Thu Jun 4 13:41:13 EDT 2009

tooshiny wrote:
> I am currently successfully using lxml and ElementTree to validate and
> to access the XML contained data. I can however not find any
> functional call to access the schema location ie the attribute value
> noNamespaceSchemaLocation.
> A simple function call would be so much nicer than the other route of
> file reading / string chopping etc

I'm not quite sure what you are trying to do here, but to access an
attribute of an Element object, you can use its get() method, as in


Or did you mean to do something else?


More information about the Python-list mailing list