[EMAIL PROTECTED] wrote: > On Feb 15, 11:10 am, [EMAIL PROTECTED] 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? http://codespeak.net/lxml/tutorial.html#the-e-factory Hint: look out for the "nsmap" keyword argument. Stefan -- http://mail.python.org/mailman/listinfo/python-list