Click here to Skip to main content
15,893,508 members

Comments by Sujeet Pardeshi (Top 12 by date)

Sujeet Pardeshi 3-Jul-12 3:35am View    
ignorant
Sujeet Pardeshi 29-Jun-12 6:36am View    
Did you have any good article to explain what is persistence ignorance in POCO or entity framework????
Sujeet Pardeshi 29-Jun-12 5:53am View    
Thanks for a reply.

It has cleared all my doubts.
Sujeet Pardeshi 6-Apr-12 0:13am View    
Yes the second solution works. Thanks...:):)
Sujeet Pardeshi 13-Jan-12 1:04am View    
Actually we are using Resource.xsd file to check if xml file is valid or not in our code. And today I have found solution.
In order to resolve references to schema file or namespace, we need to use XmlNamespaceManager class.

Here is the detailed code.
XPathDocument doc = new XPathDocument(@"E:\xmls\P_APSB11-21.xml");
XPathNavigator nav = doc.CreateNavigator();
XmlNamespaceManager nsmgr = new XmlNamespaceManager(nav.NameTable);
nsmgr.AddNamespace("ms", "Resource.xsd");


XPathNodeIterator PatchFilesiterator= nav.Select("//ms:PatchFiles",v);

Today I found that, if there is any reference to schema file or namespace then we need to resolve that reference using XmlNamespaceManager class.