22 Aug 17:49
ElementTree docinfo attribute
From: David Soulayrol <dsoulayrol <at> free.fr>
Subject: ElementTree docinfo attribute
Newsgroups: gmane.comp.python.lxml.devel
Date: 2008-08-22 15:50:10 GMT
Subject: ElementTree docinfo attribute
Newsgroups: gmane.comp.python.lxml.devel
Date: 2008-08-22 15:50:10 GMT
Hello, I can read at http://article.gmane.org/gmane.comp.python.lxml.devel/1106/match=docinfo "a DocInfo object that you can also instantiate on an ElementTree (or Element) by hand." But I also can read from _ElementTree help : "docinfo: Information about the document provided by parser and DTD. This value is only defined for ElementTree objects based on the root node of a parsed document (e.g. those returned by the parse functions)." In any case, the docinfo property of ElementTree seems read only. So please tell me, is it possible to fill the docinfo property of an ElementTree by hand, or is it necessary to use the etree parse method ? Thanks. -- -- David.
RSS Feed