cyrus_ Posted February 13, 2006 Share Posted February 13, 2006 Hi,I'm trying to get a file from a Web Service and then save it.but i get an error that cause me headaches.here is my code: string path = "C:\\temp1\\Myfile.xml"; WSRef.MyWS WS = new WSRef.MyWS(); XmlElement result = WS.GetFile(path); string WSPath = "C:\\temp1\\temp2\\myfile.xml"; XmlDocument doc = new XmlDocument(); doc.AppendChild(result); doc.Save(WSPath);here is the exception:The node to be inserted is from a different document context. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now