Hi,

Matthew Ouyang schrieb am 10.01.25 um 20:08:
It would be really nice if the namespaces in the XML document could be 
considered.

I read this request quite often. It's in the FAQs:

https://lxml.de/FAQ.html#how-can-i-find-out-which-namespace-prefixes-are-used-in-a-document

Namespace prefixes in the document can freely be chosen by the document creator/provider. They are really a pure serialisation detail and should not be considered fixed or useful for any kind of processing besides plain parsing.

Stefan

_______________________________________________
lxml - The Python XML Toolkit mailing list -- lxml@python.org
To unsubscribe send an email to lxml-le...@python.org
https://mail.python.org/mailman3/lists/lxml.python.org/
Member address: arch...@mail-archive.com

Reply via email to