XML pickle

Stefan Behnel stefan_ml at behnel.de
Sat Feb 16 08:36:08 CET 2008

castironpi at gmail.com wrote:
> On Feb 15, 11:10 am, castiro... at gmail.com wrote:
>>>> Can you use set( '{ss}Type' ) somehow?
>>> What is 'ss' here? A prefix?
>>> What about actually reading the tutorial?
>>> http://codespeak.net/lxml/tutorial.html#namespaces
>>>> And any way to make this look
>>>> closer to the original?
>>> What's the difference you experience?
> Something else that crept up is:
> <?xml version='1.0' encoding='ASCII'?>
> <Workbook xmlns="[hugethingA]">
>   <Worksheet xmlns:ns0="[hugethingA]" ns0:name="WSheet1">
>   </Worksheet>
>   <Styles>
>     <Style xmlns:ns1="[hugethingA]" ns1:ID="s21"/>
>   </Styles>
> </Workbook>
> Which xmlns:ns1 gets "redefined" because I just didn't figure out how
> get xmlns:ns0 definition into the Workbook tag.  But too bad for me.

What about actually *reading* the links I post?


Hint: look out for the "nsmap" keyword argument.


More information about the Python-list mailing list