Windows Phone 7 XML?
-
I've been trying to convert an old app to run on Windows Phone 7. I hit a roadblock when the compiler didn't recognize XmlNode or XmlDocument. I've got a reference to System.Xml and a Using statement for System.Xml. Am I missing something simple here or do they really not support XmlNode or XmlDocument on Windows Phone 7? :confused:
using System; using System.Net; using System.Xml; public class MyClass { public MyClass() { XmlNode test; // causes 'XmlNode' could not be found error. } }
Latest toys built for fun: 3D gravity simulation using xbap
full size Google image search. -
I've been trying to convert an old app to run on Windows Phone 7. I hit a roadblock when the compiler didn't recognize XmlNode or XmlDocument. I've got a reference to System.Xml and a Using statement for System.Xml. Am I missing something simple here or do they really not support XmlNode or XmlDocument on Windows Phone 7? :confused:
using System; using System.Net; using System.Xml; public class MyClass { public MyClass() { XmlNode test; // causes 'XmlNode' could not be found error. } }
Latest toys built for fun: 3D gravity simulation using xbap
full size Google image search. -
I've been trying to convert an old app to run on Windows Phone 7. I hit a roadblock when the compiler didn't recognize XmlNode or XmlDocument. I've got a reference to System.Xml and a Using statement for System.Xml. Am I missing something simple here or do they really not support XmlNode or XmlDocument on Windows Phone 7? :confused:
using System; using System.Net; using System.Xml; public class MyClass { public MyClass() { XmlNode test; // causes 'XmlNode' could not be found error. } }
Latest toys built for fun: 3D gravity simulation using xbap
full size Google image search.You have to use class XMlReader http://msdn.microsoft.com/en-us/library/system.xml.xmlreader(v=VS.95).aspx[^] To read the document use Create static method To read the next node at same level use method Read(); To read subElements use method ReadSubtree()