Jump to content
Sign in to follow this  
paetje

DTD double declaration

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?

Share this post


Link to post
Share on other sites

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)>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...