Use the default namespace from nsmap

July 30, 2014
12:16 p.m.
Hello Lxml, A googling confirmes that I'm far from the only one bitten badly by the lack of automatic usage of the default `xmlns'. I've written a wrapper that auto-prefixes the tags (like many others, I suspect. it's in attachment). Since starting usgin them by default right off the bat would be controversial, i suggest to make it an option to `xpath()' and collect user feedback for some time. We can use my code for that. It doesn't handle the case where the automatically-added prefix already exists but is written to be robust otherwise. Afterwards, we could start convincing libxml2 team to support NULL for xmlNs::prefix based on existing user experience. -- Best regards, Ivan mailto:vano@mail.mipt.ru
3861
Age (days ago)
3861
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ivan Pozdeev