I am really struggling with writing the dtd for some xml code. Despite reading up on this I am stuck as to where I am going wrong. Any advice would be gratefully received. I know it is basic but I am new to this and it is not clicking.
Here is the dtd (amended)...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE Refs [
<!ELEMENT Refs (Book)>
<!ELEMENT Book (author,editor,pdate,title,pplace,pname)>
<!ELEMENT author (#PCDATA)>
<!ELEMENT editor (#PCDATA)>
<!ELEMENT pdate (#PCDATA)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT pplace (#PCDATA)>
<!ELEMENT pname (#PCDATA)>
]>
Here is the xml file...
<Refs>
<Book>
<author>RANGANATHAN</author>
<editor>anon</editor>
<pdate>1967</pdate>
<title>PROLEGOMENATOLIBRARYCLASSIFICATION</title>
<pplace>NEWYORKNY</pplace>
<pname>ASIAPUBLISHINGHOUSE</pname>
</Book>
</Refs>