Hello every one
I have just started to work in xml. I have written the following xml and dtd files in xml copy editor.
<!DOCTYPE email
[
<!ELEMENT email ( head, body )>
<!ELEMENT head (from,to,subject)>
<!ELEMENT from EMPTY>
<!ATTLIST from
name CDATA #IMPLIED
address CDATA #IMPLIED >
Hello every one
I have just started to work in xml. I have written the following xml and dtd files in xml copy editor.
<!DOCTYPE email
[
<!ELEMENT email ( head, body )>
<!ELEMENT head (from,to,subject)>
<!ELEMENT from EMPTY>
<!ATTLIST from
name CDATA #IMPLIED
address CDATA #IMPLIED >
] >
<email> <head> <from name="com" address="sabah@abc.com"/><to name="com2" address="sabah@@gmail.com"/>
<subject> Greetings</subject>
</head>
<body>
I hope you are enjoying working in XML
I can do it very well
</body>
</email>
when i run dtd i get the following error
no element found and the line mentioned is here ]>
please tell me what to do
What do you mean by "run dtd"?