[XML-SIG] Missing DOCTYPE when pretty printing

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon, 5 Mar 2001 23:47:45 +0100


> It seems that if the DOCTYPE node does not have a SYSTEM id, it will not
> be printed at all? Is this deliberate or is this a bug?

That's a bug.

> What is the simplest workaround?

Update to 0.6.4, which has this bug fixed.

> Is there another (simpler) way to pretty print XML files?

Depends on what you've got. If it is a DOM tree, then the answer is
probably "no". You could traverse it yourself, but it won't be
simpler.

Regards,
Martin