Hello.
I am a Java programmer just getting into ASP.NET with C#.
I have started writing an xml schema that will be used to the pages so that it can be created dynamically from the xml.
I just need some input from people with experience in this type of thing to make sure I am on the right path.
Am I correct in using XPathDocument to load the XML document? I need fast, read-only, random access and my research on the net has shown this to be the best option.
My big question is: Where should I load this XML document?
Should I have a class that loads it at application_start (in globals) into Application variables. And then use xpath queries to access the data when needed?
Has anyone had any experience in doing something similiar? What worked best for you? (Best performance, best practice etc.)
Any input would be appreciated.
Thank you.
I am a Java programmer just getting into ASP.NET with C#.
I have started writing an xml schema that will be used to the pages so that it can be created dynamically from the xml.
I just need some input from people with experience in this type of thing to make sure I am on the right path.
Am I correct in using XPathDocument to load the XML document? I need fast, read-only, random access and my research on the net has shown this to be the best option.
My big question is: Where should I load this XML document?
Should I have a class that loads it at application_start (in globals) into Application variables. And then use xpath queries to access the data when needed?
Has anyone had any experience in doing something similiar? What worked best for you? (Best performance, best practice etc.)
Any input would be appreciated.
Thank you.