Hello every one I have just started to work in xml. I have written the following xml and dtd files in xml copy editor.
<!ELEMENT head (from,to,subject)> <!ELEMENT from EMPTY> <!ATTLIST from name CDATA #IMPLIED address CDATA #IMPLIED >
<!ELEMENT to EMPTY> <!ATTLIST to name CDATA #IMPLIED address CDATA #IMPLIED >
<!ELEMENT subject (#PCDATA)>
<!ELEMENT body (text)> <!ELEMENT text (#PCDATA)>
] >
<email> <from name="com" address="sabah@abc.com"></from></email>
<to name="com2" address="sabah@@gmail.com"></to>
<subject> Greetings</subject>
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"?
Log in to post a comment.
Hello every one
I have just started to work in xml. I have written the following xml and dtd files in xml copy editor.
<!ELEMENT head (from,to,subject)>
<!ELEMENT from EMPTY>
<!ATTLIST from
name CDATA #IMPLIED
address CDATA #IMPLIED >
<!ELEMENT to EMPTY>
<!ATTLIST to
name CDATA #IMPLIED
address CDATA #IMPLIED >
<!ELEMENT subject (#PCDATA)>
<!ELEMENT body (text)>
<!ELEMENT text (#PCDATA)>
] >
<email>
<from name="com" address="sabah@abc.com"></from></email>
<to name="com2" address="sabah@@gmail.com"></to>
<subject> Greetings</subject>
I hope you are enjoying working in XML I can do it very wellwhen 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"?