Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy

I am trying to use SaveAsXml to save to a stream but cannot find a stream that will work... I have tried StringWriter but it won't pass the syntax check and you cannot create a generic stream. What streams work. I just want a string of the XML

Visual Basic if possible please.