<!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>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>