[Home] [By Thread] [By Date] [Recent Entries]

  • 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

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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member