lxml and namespaces

Irmen de Jong irmen.NOSPAM at xs4all.nl
Tue Jul 29 15:21:23 EDT 2014


On 29-7-2014 20:35, Marc Aymerich wrote:


> Got it!
> xml = lxml.builder.ElementMaker(
>      nsmap = {
>          None: "urn:iso:std:iso:20022:tech:xsd:pain.008.001.02",
>          'xsi': "http://www.w3.org/2001/XMLSchema-instance",
>      }
> )
> doc = xml.Document()


Thanks for taking the time to actually post the solution you came up with yourself!

Irmen





More information about the Python-list mailing list