Hi joefawcett,armmarti....
http://xml.coverpages.org/xml-ISOents.txt
This link has a character equivalent for check character, which is x2713 and it uses the encoding scheme of ISO 10646.
Here is the statement in my DTD...
----------------------------------
<!ENTITY check "#x2713;">
what I have above in quotations is &_#_x_2_7_1_3_;
(WITH OUT underscores)
This is a statement in input XML file...
------------------------------------
The foll ✓ owing is
This is my Output XML file when viewed in EditPlus-a text editor....
---------------------------
The foll ? owing is
Here is the code in my java file where I didnot explicitly specify any output encoding type....
--------------------------------------------------
DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
factory.setValidating(true);
factory.setIgnoringElementContentWhitespace(true);
DocumentBuilder builder=factory.newDocumentBuilder();
currDocument=builder.parse(f);
TransformerFactory tf=TransformerFactory.newInstance();
Transformer t = tf.newTransformer(new StreamSource("transformoutput.xsl"));
t.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, "nmstat.dtd");
FileWriter fileOut = new FileWriter("outputAnno.xml");
t.transform(new DOMSource(document), new StreamResult(fileOut));
This is the code in transformoutput.xsl...
----------------------------------------------
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:copy-of select="node()"/>
</xsl:template>
</xsl:stylesheet>
-----------------------------------------------
Could you help me figuring out the problem.
Thank you very much.
-Srivalli.