OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Type of an Element

[ Lists Home | Date Index | Thread Index ]

Hi,
  
    This is a sample DTD.
<!ELEMENT foo (bar)*>
<!ELEMENT name (foo)>
<!ELEMENT bar (#PCDATA)>
 
The corresponding XML.
<?xml version="1.0"?>
<!DOCTYPE foo SYSTEM "foo.dtd">
  <foo>
     <bar> test </bar>
     <bar> test1 </bar>
     <name>
         <bar> test </bar>
         <bar> test </bar>
     </name>
  </foo>

I Wanted to use the DTD in the above way. ie I wanted to have an element's type to be of another element. How this can be achieved?. But if i use the above document, the parser will definitely will throw error.
 
Regards,
Raja




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS