[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Type of an Element

  • To: <xml-dev@l...>
  • Subject: Type of an Element
  • From: "rajac" <rajac@n...>
  • Date: Tue, 12 Feb 2002 22:42:52 +0530

dtd throw error
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.