Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Windows Phone 7 XML?

Windows Phone 7 XML?

Scheduled Pinned Locked Moved Mobile
csharpcomxmlhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pelnor
    wrote on last edited by
    #1

    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.

    A B 2 Replies Last reply
    0
    • P pelnor

      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.

      A Offline
      A Offline
      AETaylor
      wrote on last edited by
      #2

      Have you tried XNode and XDocument?

      1 Reply Last reply
      0
      • P pelnor

        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.

        B Offline
        B Offline
        Bonhomme M
        wrote on last edited by
        #3

        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()

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups