<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have downloaded a DTD from the w3c web-site for
MathML and XHTML:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When I attemt to parse a document using this DTD, I
get an exception from org.jdom.input.SAXBuilder.build().</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV>"Error in building: The markup declarations contained or pointed to by the
document type declaration must be well-formed."</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Any ideas? I assume this should be a valid
DTD.</FONT></DIV>
<DIV><FONT face=Arial size=2>John</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The stack trace gives:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>org.jdom.JDOMException: Error in building: The
markup declarations contained or pointed to by the document type declaration
must be well-formed.<BR> at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:306)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:650)<BR>
at
au.com.goldsoft.MathXHTML.MathXHTMLToJDOM.convert(MathXHTMLToJDOM.java:31)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processText(EditorPane.java:102)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processURL(EditorPane.java:124)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.<init>(EditorPane.java:92)<BR>
at au.com.goldsoft.MathXHTML.EditorPane.main(EditorPane.java:145)<BR>Caused by:
org.xml.sax.SAXException: The markup declarations contained or pointed to by the
document type declaration must be
well-formed.<BR> at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:979)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)<BR>
... 6 more<BR>Root cause: org.xml.sax.SAXException: The markup declarations
contained or pointed to by the document type declaration must be
well-formed.<BR> at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:979)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:650)<BR>
at
au.com.goldsoft.MathXHTML.MathXHTMLToJDOM.convert(MathXHTMLToJDOM.java:31)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processText(EditorPane.java:102)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processURL(EditorPane.java:124)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.<init>(EditorPane.java:92)<BR>
at au.com.goldsoft.MathXHTML.EditorPane.main(EditorPane.java:145)<BR>Root cause:
org.xml.sax.SAXException: The markup declarations contained or pointed to by the
document type declaration must be
well-formed.<BR> at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:979)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:650)<BR>
at
au.com.goldsoft.MathXHTML.MathXHTMLToJDOM.convert(MathXHTMLToJDOM.java:31)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processText(EditorPane.java:102)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processURL(EditorPane.java:124)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.<init>(EditorPane.java:92)<BR>
at au.com.goldsoft.MathXHTML.EditorPane.main(EditorPane.java:145)If I try to get
a stack trace as well, the message is garbaged, thus:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If I try to print the exception message, and a
stack trace, I get the following garbage:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Eorrrgo.rj dionm .bJuDiOlMdEixncge:p tTihoen :m
aErrkruopr dienc lbaurialtdiionngs: cTohnet amianrekdu po rd
epcolianrtaetdi otnos bcyo ntthaei ndeodc uomre npto itnytpeed dteoc
lbayr atthieo nd omcuusmte nbte twyeplel -dfeocrlmaerda.t<BR>ion must be
well-formed.<BR> at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:306)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:650)<BR>
at
au.com.goldsoft.MathXHTML.MathXHTMLToJDOM.convert(MathXHTMLToJDOM.java:31)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processText(EditorPane.java:102)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processURL(EditorPane.java:124)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.<init>(EditorPane.java:92)<BR>
at au.com.goldsoft.MathXHTML.EditorPane.main(EditorPane.java:145)<BR>Caused by:
org.xml.sax.SAXException: The markup declarations contained or pointed to by the
document type declaration must be
well-formed.<BR> at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:979)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)<BR>
... 6 more<BR>Root cause: org.xml.sax.SAXException: The markup declarations
contained or pointed to by the document type declaration must be
well-formed.<BR> at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:979)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:650)<BR>
at
au.com.goldsoft.MathXHTML.MathXHTMLToJDOM.convert(MathXHTMLToJDOM.java:31)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processText(EditorPane.java:102)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processURL(EditorPane.java:124)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.<init>(EditorPane.java:92)<BR>
at au.com.goldsoft.MathXHTML.EditorPane.main(EditorPane.java:145)<BR>Root cause:
org.xml.sax.SAXException: The markup declarations contained or pointed to by the
document type declaration must be
well-formed.<BR> at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:979)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:650)<BR>
at
au.com.goldsoft.MathXHTML.MathXHTMLToJDOM.convert(MathXHTMLToJDOM.java:31)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processText(EditorPane.java:102)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.processURL(EditorPane.java:124)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.<init>(EditorPane.java:92)<BR>
at
au.com.goldsoft.MathXHTML.EditorPane.main(EditorPane.java:145)</FONT></DIV><FONT
face=Arial size=2>
<DIV><BR>------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>Dr John Foster <BR>GOLD SOFTWARE International Pty Ltd <BR>P O Box 5033
<BR>Laburnum<BR>Victoria 3130 <BR>Australia </DIV>
<DIV> </DIV>
<DIV>Phone: 04 1173 7288<BR>Fax: 03 9878 7844
<BR>e-mail: <A href="mailto:johnf@goldsoft.com.au">johnf@goldsoft.com.au</A>
<BR>WWW: <A
href="http://www.goldsoft.com.au">http://www.goldsoft.com.au</A></DIV>
<DIV> </DIV>
<DIV>------------------------------------------------------------<BR></FONT></DIV></BODY></HTML>