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

RE: What's wrong w/ nested elements?

  • To: "Jain, Rajnish" <rjain@x...>,<xml-dev@l...>
  • Subject: RE: What's wrong w/ nested elements?
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Mon, 7 Jun 2004 10:13:59 -0700
  • Thread-index: AcRMjAheaP707llBQmCicDgGo4k9NQAJfNuQ
  • Thread-topic: What's wrong w/ nested elements?

rajnish jain
Title: What's wrong w/ nested elements?
The Visual Studio.NET 2002 & 2003 XML schema designers use the System.Data.DataSet class as the data structure when designing schemas. A limitation of the DataSet is that it cannot represent schemas which it cannot map to relational structures. Your best bet is to avoid using Visual Studio.NET as your XML schema designer and use whatever XML editor you currently favor.
 

--
PITHY WORDS OF WISDOM
If two wrongs don't make a right, try three.      

This posting is provided "AS IS" with no warranties, and confers no rights.

 


From: Jain, Rajnish [mailto:rjain@x...]
Sent: Monday, June 07, 2004 5:36 AM
To: xml-dev@l...
Subject: What's wrong w/ nested elements?

Folks,

The following example shows the same element (b) contained inside elements (a1) and (a2).

<a>
    <a1>
         <b>
           <c></c>
         </b>
    </a1>
    <a2>
         <b>
           <c></c>
         </b>
    </a2>
</a>

When I try to create an XSD for this XML using Microsoft Development Environment 7.1, I get
the following error:

Failed to Create a schema for this data file because:
Although this XML document is well formed, it contains structure that Data View cannot display.
The same table (b) cannot be the child table in two nested relations.

Wondering why the containment relationship shown above is not valid for an XSD? And what can
I do to workaround this problem (I can't afford to name mangle (b) everywhere it appears).

Thanks,
Rajnish Jain

sip:rjain@v...
mailto:rjain@x...
 



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.