String xml = "";
StringWriter writer = new StringWriter();
OutputFormat of = new OutputFormat(doc, "UTF-8", false);
of.setIndenting(false);
XMLSerializer xmlser = new XMLSerializer(writer, of);
xmlser.serialize(doc);
writer.flush();
xml = writer.toString();
[EMAIL PROTECTED] on 11/09/2001 06:46:11 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: <!DOCTYPE> removed by DOMParser?
Hello,
Versions
xerces: 1.4.2
jdk: 13.1_01
Problem:
Xml file with a <!DOCTYPE> tag to include a dtd is sent to a servlet,
parsed using xerces DOMParser, and then downloaded to a filesystem. When
the file arrives it does not contain the <!DOCTYPE> tag, parsing has
removed it. Is there any way which the xml may be parsed but retain the
<!DOCTYPE> tag?
Thanks in advance,
Julie.
This communication is for informational purposes only. It is not intended
as
an offer or solicitation for the purchase or sale of any financial
instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made
herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This communication is for informational purposes only. It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]