<!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.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Reverting to my below question,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><!ATTLIST key<BR>
no CDATA #REQUIRED></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>is working well, but it allows all the rage of
CDATA to appear with the attribute "no".</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But I want something like below to strict the
valid keys to some specific.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><!ATTLIST key<BR>
no (1|2|3|4|5|6|7|8|9|z|r|c|*) #REQUIRED> ---Note the *
(astric in the end) --- and of course NOT WORKING.</FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hope you can understand.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Are there any way to do this ...????</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sanjaya Vitharana</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=sanjaya@wavenet.lk href="mailto:sanjaya@wavenet.lk">Sanjaya Vitharana</A>
</DIV>
<DIV><B>To:</B> <A title=erlang-questions@erlang.org
href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A> </DIV>
<DIV><B>Sent:</B> Wednesday, July 13, 2005 11:30 AM</DIV>
<DIV><B>Subject:</B> DTD / xmerl_scan:file help !!!!! {invalid_nmtoken,"*)
#RE"</DIV></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></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 get the below error when adding * (astric)
to attribute list of my "key" element. As below</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><!ATTLIST key<BR>
no (1|2|3|4|5|6|7|8|9|z|r|c|*) #REQUIRED> ---Note the *
(astric in the end)</FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Error I got is.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1>
{ParsResult2,Misc2}=xmerl_scan:file('ivr.xml',[{validation,true<BR>}]).<BR>2798-
fatal: {invalid_nmtoken,"*) #RE"}<BR>** exited: {fatal,{{invalid_nmtoken,"*)
#RE"},<BR>
{file,"./ivr.dtd"},<BR>
{line,21},<BR>
{col,47}}} **<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Seems to be * (astric) is invalid in DTD (or
may be xmerl_scan validation problem).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But i want to use * (astric) in my XML file as
below. So there must be a way to define it in DTD ..... can any DTD
expert help me in this case.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>--------------- XML File I use
-------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><?xml version="1.0" encoding="utf-8"
?><BR><!DOCTYPE IVR SYSTEM "ivr.dtd"><BR><IVR></FONT></DIV>
<DIV><FONT face=Arial size=2>.........</FONT></DIV>
<DIV><FONT face=Arial size=2><key
no="*">http://localhost/greeting_lite/select_song_greeting.php</key>
------------------- Note the attribute *</FONT></DIV>
<DIV><FONT face=Arial size=2>.........</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></IVR></FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-------- This DTD is working without any problem
----------</FONT></DIV>
<DIV><FONT face=Arial size=2><?xml version="1.0" encoding="utf-8"
?><BR><!ELEMENT IVR (........, key*, ..........)>
</FONT></DIV>
<DIV><FONT face=Arial size=2><!ELEMENT key (#PCDATA)></FONT></DIV>
<DIV><FONT face=Arial size=2><!ATTLIST key<BR>
no (1|2|3|4|5|6|7|8|9|z|r|c) #REQUIRED></FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------</FONT></DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>NOTE: ......... (doted
line) means there are some other fields</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Waiting quick reply.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sanjaya Vitharana</DIV></FONT></BODY></HTML>