Menu

no element found

Help
2015-09-23
2015-09-27
  • sabah suhail

    sabah suhail - 2015-09-23

    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 well

    when i run dtd i get the following error
    no element found and the line mentioned is here ]>

    please tell me what to do

     
  • Zane U. Ji

    Zane U. Ji - 2015-09-27

    What do you mean by "run dtd"?

     

Log in to post a comment.