diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | gnu/xml/stream/XMLStreamWriterImpl.java | 6 |
2 files changed, 9 insertions, 5 deletions
@@ -1,4 +1,10 @@ -2006-12-056 Chris Burdess <dog@gnu.org> +2006-12-06 Chris Burdess <dog@gnu.org> + + Fixes PR 29264. + * gnu/xml/stream/XMLStreamWriterImpl.java: Allow arbitrary text in + writeDTD method. + +2006-12-06 Chris Burdess <dog@gnu.org> Fixes PR 28816. * javax/xml/validation/SchemaFactory.java: Use correct algorithm to diff --git a/gnu/xml/stream/XMLStreamWriterImpl.java b/gnu/xml/stream/XMLStreamWriterImpl.java index 291016e67..4be9992a7 100644 --- a/gnu/xml/stream/XMLStreamWriterImpl.java +++ b/gnu/xml/stream/XMLStreamWriterImpl.java @@ -664,12 +664,10 @@ public class XMLStreamWriterImpl public void writeDTD(String dtd) throws XMLStreamException { - // Really thoroughly pointless method... try { - if (!isName(dtd)) - throw new IllegalArgumentException("illegal Name: " + dtd); - + // XXX: Should we parse the doctypedecl at this point to ensure + // wellformedness? writer.write("<!DOCTYPE "); writer.write(dtd); writer.write('>'); |