OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Schema validation of recursive structures

[ Lists Home | Date Index | Thread Index ]
  • To: <xml-dev@lists.xml.org>
  • Subject: RE: [xml-dev] Schema validation of recursive structures
  • From: "Michael Kuzminski" <MKuzminski@Paragonhomelending.COM>
  • Date: Thu, 20 Jan 2005 14:58:48 -0600
  • Thread-index: AcT/J8LCBZGADepiRfygVRImjGatiwACcLNQ
  • Thread-topic: [xml-dev] 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@fpf.br]
Sent: Thursday, January 20, 2005 1:40 PM
To: xml-dev@lists.xml.org
Subject: [xml-dev] 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@hotmail.com

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS