Writing to an XML Document in Windows Phone 7

JackX

New Member
I'm attempting to write some data from an object to an XML document and am following a tutorial online, however I have run into a problem which I can't seem to fathom, the code I'm using to initiate the creation of the document is\[code\]using (XmlWriter writer = XmlWriter.Create("myData.xml"))\[/code\] and I'm getting an error with the "myData.xml", the errors I get are:\[code\]The best overload method match for 'System.Xml.XmlWriter.Create(System.Xml.XmlWriter)'has some invalid argumentsArgument 1: cannot convert from 'string' to 'System.Xml.XmlWriter'\[/code\]Is XmlWriter compatible with Windows Phone? And if not will I have to change huge amounts of code that writes to the file?Thanks! -Ryan
 
Back
Top