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

RE: Schema validation of recursive structures

  • To: <xml-dev@l...>
  • Subject: RE: Schema validation of recursive structures
  • From: "Michael Kuzminski" <MKuzminski@P...>
  • Date: Thu, 20 Jan 2005 14:58:48 -0600
  • Thread-index: AcT/J8LCBZGADepiRfygVRImjGatiwACcLNQ
  • Thread-topic: Schema validation of recursive structures

xml recursive structures
Title: Message
Good question. I have a similar dilemma.
I have an xml file that contains this info, but ADO.NET doesn't like it because it has the <ITEM> node underneath two different parent nodes. ADO.net tries to convert this into a table structure and it bombs out that that point.
 
So the question is, is this valid XML? And if so how can I load it to a .NET dataset?
 
Thanks,
Mike
 
 
<?xml version="1.0" ?>
<OrdersInventoryData>
     <Order>
          <Item>
               <id>1</id>
               <qty>5</qty>
          </Item>
     </Order>
    <Inventory>
        <Item>
           <id>1</id>
           <qty>100</qty>
          </Item>
     </Inventory>
</OrdersInventoryData>
 
-----Original Message-----
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:

<root>

<A>

            <element1/>

            <element2/>

            <A>

                        <element1/>

                        <element2/>

                        <element3/>

                        <A>

                                   <element1/>

                        <A>

            <A>

</A>

            </root>

 

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

 

Thank’s

 

 


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


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.