简体   繁体   中英

XML Data Search

I have XML (Static Data) with size of 30 KB. It has multiple sub-fields at each level. My requirement is to search for an element which matches to my input and retrieve it's sbu-fields. I'll not do any data manipulations on top of it and update the file. In this case which is will give better performance XPATH or XML Serialize in .Net?

Many of the resources says XML serialize would be good but I'm not sure which one to choose for my situation.

Using the newer types in System.Xml.Linq you can efficiently query your XML data using LINQ queries without code bloat.

Here's a good starting place: http://msdn.microsoft.com/en-us/library/bb387061.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM