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 ]

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

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.


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

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