I can’t seem to figure out how to create a new XML file in SilverLight. I tried using XMLTextWriter and XMLDocument but on both I get the error “does not exist in the current context”
I’m using System.Xml and I can use XMLWriter and XMLReader but I cannot for the life of me figure out what I’m doing wrong. Can someone point me in the right direction please?
Thanks!
You are looking for Linq to Xml and the
XDocumentclass. Sample from MSDN:This is using the
System.Xml.Linqnamespace.You need to add a reference to the assembly
System.Xml.Linq.dllin your Silverlight project: