I’ve few XML Documents with bunch of XPath queries. I want only the app I design to change the XML doc :). I ‘ve mechanisms to check the integrity of the document and protect someone screwing around.
Now, XML Parsing with C# .Net doesn’t give the performance I’m happy about.
The options I have are.
- Use a new parser (Even port to C++).
- Write a Schema.( It might take a long long time ). Does it improve parsing performance?
- Playing around with more .Net classes or libraries. XMLReader is what I’m using now
Can someone tell me which will make me smile more after the time I spend on.
Updated some Info:
I want to only parse and read some/all attributes. Writing are changing the doc is not what I want.
Might want XSD support later on. (Donno what future holds for me)
Current Performance: 50 MB of XML in 14 seconds in 1000 files.
Opening, closing of files also takes some time I guess !!(It is included)
I’m looking for 1/2 the time of this.
Have you read Improving XML Performance?
Without seeing some code which shows exactly what you are doing and timing it is hard to comment on what is slow, but I suspect that it is not the parsing itself which is slow.