S
Shozi
Dear All,
My project is basically about the personal record keeping of user's
data. Now user can customize their data entry form by adding/removing
the desired fields for personal information (e.g. Add: Home Phone Pin
Code, Remove: Personal ID Card No). All this was being done in
database and was working fine.
Some one recommend me to use DTD/XML to automate this whole process in
a standardized way. I started off while searching on the web and on
different forums and found some good examples. But at one point, I am
stuck at creating chioce in DTD?
Let's assume that I have three choices for some attribute. I define
them as under in my output DTD file,
---------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT choice_testing (#PCDATA)>
<!ATTLIST choice_testing value (True | False | Unknown ) "Unknown" >
---------------------------------------------
Every thing seems to be fine except one thing, if I enter any
non-Alphanumeric character in the value of this choice.
e.g. ( <!ATTLIST email_address_domain value (@yahoo.com | @hotmail.com
| Unknown ) "@yahoo.com" > ).
After this, the parser gave me a parsing error. I have checked the
validity of DTD file with XML Spy 4.3 and its validator won't let me
pass through and gave me an error message that "Wild card character
found, cannot proceed". As this is some basic funcationlity of the
project. Any Comments / suggestion / help ?
Thanks in Advance
Waiting for your reply,
Best Regards,
Shozi
My project is basically about the personal record keeping of user's
data. Now user can customize their data entry form by adding/removing
the desired fields for personal information (e.g. Add: Home Phone Pin
Code, Remove: Personal ID Card No). All this was being done in
database and was working fine.
Some one recommend me to use DTD/XML to automate this whole process in
a standardized way. I started off while searching on the web and on
different forums and found some good examples. But at one point, I am
stuck at creating chioce in DTD?
Let's assume that I have three choices for some attribute. I define
them as under in my output DTD file,
---------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT choice_testing (#PCDATA)>
<!ATTLIST choice_testing value (True | False | Unknown ) "Unknown" >
---------------------------------------------
Every thing seems to be fine except one thing, if I enter any
non-Alphanumeric character in the value of this choice.
e.g. ( <!ATTLIST email_address_domain value (@yahoo.com | @hotmail.com
| Unknown ) "@yahoo.com" > ).
After this, the parser gave me a parsing error. I have checked the
validity of DTD file with XML Spy 4.3 and its validator won't let me
pass through and gave me an error message that "Wild card character
found, cannot proceed". As this is some basic funcationlity of the
project. Any Comments / suggestion / help ?
Thanks in Advance
Waiting for your reply,
Best Regards,
Shozi