Paul Watson wrote:
> Explicit [XML declaration] is better than implicit.
Yes indeed.
"Always use an XML declaration"
http://www-128.ibm.com/developerworks/xml/library/x-tipdecl.html
--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.nethttp://fo
Paul Watson wrote:
>> why? the documents are equivalent, and any XML application that
>> requires an explicit UTF-8 encoding declaration is broken.
>
> Explicit is better than implicit.
inventing your own XML standard is no way better than using the existing
one.
--
http://mail.python.org
Fredrik Lundh wrote:
> Danny Scalenotti wrote:
>
>> I'm not able to get out of this ...
>>
>> from xml.dom.minidom import getDOMImplementation
>>
>> impl = getDOMImplementation() // default UTF-8
>> doc = impl.createDocument(None, "test",None)
>> root = doc.documentElement
>> root.setAttribu
Danny Scalenotti wrote:
> I'm not able to get out of this ...
>
>
> from xml.dom.minidom import getDOMImplementation
>
> impl = getDOMImplementation() // default UTF-8
> doc = impl.createDocument(None, "test",None)
> root = doc.documentElement
Here, you're actually getting a reference to the
Danny Scalenotti wrote:
> I'm not able to get out of this ...
>
> from xml.dom.minidom import getDOMImplementation
>
> impl = getDOMImplementation() // default UTF-8
> doc = impl.createDocument(None, "test",None)
> root = doc.documentElement
> root.setAttribute('myattrib', '5')
>
> print
I'm not able to get out of this ...
from xml.dom.minidom import getDOMImplementation
impl = getDOMImplementation() // default UTF-8
doc = impl.createDocument(None, "test",None)
root = doc.documentElement
root.setAttribute('myattrib', '5')
print root.toxml()
I obtain
why not this?