Jump to content

DTD double declaration


paetje

Recommended Posts

First my appologies for a question about DTD in an Schema forum. But I must use an DTD for support of my XML program (XMetal) and I can't figure out where to put my question.I'm trying to set up an DTD witch describes what element may be used on what location. Now I made an element <paragraph> and <subparagraph> the must contain both the child-element <bold>. Now I'm having an error message: "tag name is already been declared". How must I build my DTD valide and use one child-element in more parent-elements?

Link to comment
Share on other sites

  • 3 weeks later...

Hi,What is your dtd?I tried the following dtd in XML Spy and it is said that the dtd is valid:<!ELEMENT script (paragraph)+><!ELEMENT paragraph (bold,subparagraph+)+><!ELEMENT subparagraph (bold)><!ELEMENT bold (#PCDATA)>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...