xmldocument

Create a new XMLDocument by filtering an existing document in c# using xpath

Hi I have a situation where I receive an XML (document) file from an external company. I need to filter the document to remove all data I am not interested in. The file is about 500KB but will be requested very often. let say the following file: <dvdlist> <dvd> <title>title 1</title> <director>directory 2</director> <p...

Error in xmlnode fuction

Hi, i am stuck with this small problem in my code. I am trying to make small console application which will write into xml document. I have used xmldocument and xmlnode concept. ERROR i am getting is; *An object reference is required for the non-static field, method, or property 'Write_xml.Program.give_node(System.Xml.XmlDocument)' ...

C# XmlDocument modifies data when you load it?

I'm recieving a Base64 encoded saml assertion from a 3rd party (its signed xml). I cant verify the signature. After close inspection, it appears that when i read in the SAML xml that XmlDocument changes the data. See this code: string rawXml = Util.DecodeBase64(SAMLResponse); byte[] b = Encoding.UTF8.GetBytes(rawXml); MemoryStream s = n...