2 Sep 18:05
copying an element will "reset" is nsmap
Hervé Cauwelier <herve.cauwelier <at> free.fr>
2009-09-02 16:05:19 GMT
2009-09-02 16:05:19 GMT
Hi, I have another unexpected behaviour. I have a root element with many namespaces declared. When I introspect the first child of the root, the nsmap is full. When I "deepcopy" it, only the the namespace used in the tag name is kept. If the name is not qualified, nsmap turns empty. (Sorry if I don't use the right XML semantic.) I tried to reaffect nsmap but the attribute is read-only. How could I preserve the nsmap attribute of unattached elements? Regards, Hervé -- -- lxml.etree: (2, 2, 2, 0) libxml used: (2, 7, 3) libxml compiled: (2, 7, 3) libxslt used: (1, 1, 24) libxslt compiled: (1, 1, 24) _______________________________________________ lxml-dev mailing list lxml-dev <at> codespeak.net http://codespeak.net/mailman/listinfo/lxml-dev
RSS Feed