[Wolves] python dom doctype, namespace, encoding, lang question
sparkes
sparkes at westmids.biz
Wed May 25 09:47:07 BST 2005
sparkes wrote:
>How do i set working xhtml doctypes, language and namespace using python
>dom?
>
>Also how is the xml encoding set?
>
>
I should have also pointed out I am using createDocument
self.dom = getDOMImplementation()
self.html = self.dom.createDocument(XHTML_NAMESPACE, "html", self.dom.createDocumentType("html","-//W3C//DTD XHTML 1.0 Strict//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"))
Now sets the doctype correctly (no idea why it didn't work before) but I
still get no namespace dispite the face XHTML_NAMESPACE is correctly
imported. Still no idea how to set the language or encoding.
>sparkes
>
>
sparkes
--
"If you assume correctly that whatever group you are in is being
penetrated by the FBI, when something serious is happening, you don't do
it in a meeting. You do it with some people you know and trust, an
affinity group and then it doesn't get penetrated. That's one of the
reasons why the FBI has never been able to figure out what's going on in
any of the popular movements."
Noam Chomsky
More information about the Wolves
mailing list