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

     
  • Zane U. Ji

    Zane U. Ji - 2015-09-27

    What do you mean by "run dtd"?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.