Click here to Skip to main content
15,892,965 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a xml file. I wann read this xml file in dataset. but i got an error.

"Nested table 'link' which inherits its namespace cannot have multiple parent tables in different namespaces. "

Please help me
Posted
Comments
King Fisher 21-May-14 3:35am    
show your code
Sunasara Imdadhusen 21-May-14 4:14am    
Inorder to understand your logic please share code
_Asif_ 21-May-14 4:21am    
Please share your XML Schema

Cross-check you XML Schema.... if still you don't get solution..come back.

see the link for "Create A Dataset From An XML File"
http://www.xmlme.com/XmlToDS.aspx?mid=45

Happy Programming...:-)

Regards
Mayur Dighe
ImmortalDotNet.Blogspot.com
ImmortalDotNet.WordPress.com
 
Share this answer
 
XML
<BaggageAllowances>
      <BaggageAllowanceInfo>
        <URLInfo>
          <URL>MYTRIPANDMORE</URL>
        </URLInfo>
        <TextInfo>
          <Text>1P</Text>
          <Text>BAGGAGE</Text>
        <TextInfo>
        <BagDetails>
          <BaggageRestriction>
            <TextInfo>
              <Text>UPTO50LB</Text>
            </TextInfo>
          </BaggageRestriction>
        </BagDetails>
        <BagDetails>
          <BaggageRestriction>
            <TextInfo>
              <Text>UPTO50LB</Text>
            </TextInfo>
          </BaggageRestriction>
        </BagDetails>
      </BaggageAllowanceInfo>
      <BaggageAllowanceInfo>
        <URLInfo>
          <URL>MYTRIPANDMORE</URL>
        </URLInfo>
        <TextInfo>
          <Text>1P</Text>
          <Text>BAGGAGE</Text>
        </TextInfo>
        <BagDetails>
          <BaggageRestriction>
            <TextInfo>
              <Text>158LCM</Text>
            </TextInfo>
          </BaggageRestriction>
        </BagDetails>
        <BagDetails>
          <BaggageRestriction>
            <TextInfo>
              <Text>158LCM</Text>
            </TextInfo>
          </BaggageRestriction>
        </BagDetails>
      </BaggageAllowanceInfo>
      </BaggageAllowances>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900