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

RE: Schema validation of recursive structures

xsd recursive
Recursive structures are certainly possible in schemas.  A common example would be recursive <section> elements, say with a title and one or more paras and zero or more sections.
Here's a DTD sample:
<!ELEMENT section  (title , para+ , section*) >
Here's a Schema sample:
      <xsd:element name="section">
               <xsd:element ref="title"/>
               <xsd:element ref="para" maxOccurs="unbounded"/>
               <xsd:element ref="section" minOccurs="0" maxOccurs="unbounded"/>
The minOccurs and maxOccurs of course can be further defined.

From: Alessandro Barbosa [mailto:abarbosa@f...]
Sent: Thursday, January 20, 2005 1:40 PM
To: xml-dev@l...
Subject: Schema validation of recursive structures

Hello to everyone,

I have a problem and I don't know how solved it.


I need validates a node seem at this:
















            The node A shall have sub items of itself, is it possible?





Alessandro de A. Barbosa

System Developer

Fundação Des. Paulo Feitoza - Manaus - AM

Mobile : 8125 - 7719

Business Phone: 55 92 614-9797


Msn: alessandrovila@h...

ICQ: 241240451; Status:  


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.837 / Virus Database: 570 - Release Date: 17/1/2005


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.
First Name
Last Name
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.