<!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.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=803383708-09102003><FONT face=Arial color=#0000ff size=2>Hello
Jorge</FONT></SPAN></DIV>
<DIV><SPAN class=803383708-09102003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=803383708-09102003><FONT face=Arial color=#0000ff size=2>Yes it
can be done. We are currently using xmerl for this purpose (version
0.17).</FONT></SPAN></DIV>
<DIV><SPAN class=803383708-09102003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=803383708-09102003><FONT face=Arial color=#0000ff size=2>The
default behaviour of xmerl_scan is to read each DTD and put it into its 'rules'
ets table. We use the 'event' callback feature to add the actual DTD
validation.</FONT></SPAN></DIV>
<DIV><SPAN class=803383708-09102003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=803383708-09102003><FONT face=Arial color=#0000ff size=2>Good
Luck</FONT></SPAN></DIV>
<DIV><SPAN class=803383708-09102003><FONT face=Arial color=#0000ff
size=2>/Fredrik</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
owner-erlang-questions@erlang.org
[mailto:owner-erlang-questions@erlang.org]<B>On Behalf Of </B>Jorge Manuel
Neves Coelho<BR><B>Sent:</B> den 8 oktober 2003 14:40<BR><B>To:</B>
erlang-questions@erlang.org<BR><B>Subject:</B> Xmerl and
DTDs<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hi!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm using xmerl to process xml documents. I would
like to validate</FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">these</SPAN>
documents against a dtd, do</FONT><FONT face=Arial size=2>es any one know if
it's possible to </FONT></DIV>
<DIV><FONT face=Arial size=2>parse a DTD using xmerl? Or does anyone know
another parser that</FONT></DIV>
<DIV><FONT face=Arial size=2>is able to do this?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you,</FONT></DIV>
<DIV><FONT face=Arial size=2>Jorge</FONT></DIV></BLOCKQUOTE></BODY></HTML>