Re: lxml and namespaces

2014-07-29 Thread Irmen de Jong
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 tim

Re: lxml and namespaces

2014-07-29 Thread Marc Aymerich
On Tue, Jul 29, 2014 at 8:19 PM, Marc Aymerich wrote: > Hi, I'm desperately trying to construct an XML with the following document > declaration: > > xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”> > > I'm using LXML, and what I'm doing is this > > >>> from lxml import etree > >>>

lxml and namespaces

2014-07-29 Thread Marc Aymerich
Hi, I'm desperately trying to construct an XML with the following document declaration: http://www.w3.org/2001/XMLSchema-instance”> I'm using LXML, and what I'm doing is this >>> from lxml import etree >>> from lxml.builder import E >>> doc = E.Document( ... { ... 'xmlns': "urn:iso:s