I am trying to create an XML file with a DTD, but in Netbeans it doesn't give me any errors, but in Oxygen XML it states Unexpected element "childone". The content of the parent element type must match "((c:childone,c:childtwo)|(childone,childtwo,childthree,childfour))".
The XML I have is as follows:
<rootelement>
<c:childone></c:childone>
<c:childtwo></c:childtwo>
<childone></childone>
<childtwo></childtwo>
<childthree></childthree>
<childfour></childfour>
</rootelement>
The DTD I have as follows:
<!ELEMENT rootelement ((c:childone,c:childtwo)|(childone,childtwo,childthree,childfour))>
<!ELEMENT c:childone (#PCDATA)>
<!ELEMENT c:childtwo (#PCDATA)>
<!ELEMENT childone (#PCDATA)>
<!ELEMENT childtwo (#PCDATA)>
<!ELEMENT childthree (#PCDATA)>
<!ELEMENT childfour (#PCDATA)>
I'm confused now, please help. Hope I formatted this correctly.