ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-sig
xml-sig
Re: [XML-SIG] Problem using schema instead of DTD
by Andrew Clover other posts by this author
Jan 14 2005 11:54AM messages near this date
[XML-SIG] Problem using schema instead of DTD | Re: [XML-SIG] Problem using schema instead of DTD
& XSLT Tim van Erven <tve@[...].net>  wrote:

>  In the process a doctype is added automatically.

Yeah, 4DOM will do that. A null doctype is added at parse-time, for some 
reason.

You can throw the doctype node out after parsing or before printing:

   if document.doctype is not None:
     document.removeChild(document.doctype)

or use one of the other DOM libraries that does not exhibit this behaviour.

-- 
Andrew Clover
mailto:and@[...].com
http://www.doxdesk.com/
_______________________________________________
XML-SIG maillist  -  XML-SIG@[...].org
http://mail.python.org/mailman/listinfo/xml-sig
Thread:
Tim van Erven
Andrew Clover
Mike Brown
Tim van Erven
Tim van Erven

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved