Click here to Skip to main content
15,886,823 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: , +
Hi firiends
I have insert record in xml file and my problem is i have fetch record using condition like i have insert product and product id and city id and i want to some city id product how to condition to fetch record in xml file thanks to advance
Posted
Comments
Sergey Alexandrovich Kryukov 30-Dec-13 2:05am    
What have you tried so far?
—SA
ZurdoDev 31-Dec-13 20:34pm    
This is not a question.

1 solution

Please see my short overview on the approaches offered by .NET FCL:
  1. Use System.Xml.XmlDocument class. It implements DOM interface; this way is the easiest and good enough if the size if the document is not too big.
    See http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.aspx[^].
  2. Use the class System.Xml.XmlTextReader; this is the fastest way of reading, especially is you need to skip some data.
    See http://msdn.microsoft.com/en-us/library/system.xml.xmlreader.aspx[^].
  3. Use the class System.Xml.Linq.XDocument; this is the most adequate way similar to that of XmlDocument, supporting LINQ to XML Programming.
    See http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.aspx[^], http://msdn.microsoft.com/en-us/library/bb387063.aspx[^].


Good luck, Happy New Year!

—SA
 
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