Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i want to learn how to give relationship in two or more xml files in asp.net
for eg. if i want to give relationship country.xml to state.xml then what should i do?
Posted
Comments
ely_bob 24-May-11 19:39pm    
It all depends on how your going to be processing it, XSLT, Serialization.. etc......

You could include the path, the URL, Compose the two, it is really more a matter of what the intent is ...
Sergey Alexandrovich Kryukov 24-May-11 21:25pm    
What does it mean: "give"?
--SA

1 solution

The relationship comes from the data, not the file type. It would seem that you're making the rather large mistake of thinking an XML file is a type of database and it's not.

The "country" and "state" relationship you're talking about is not really a primary/foreign key relationship, but rather a hierarchy. This is comething you could eaily do in a single .XML file.

Unless you have some kind of key relation data in your XML files already, you're going to find this is impossible to do without adding extra data you don't really need.
 
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