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. General Programming
  3. C#
  4. Xml Deserialization

Xml Deserialization

Scheduled Pinned Locked Moved C#
xml
5 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.
  • V Offline
    V Offline
    VCsamir
    wrote on last edited by
    #1

    hi friends, i am using xmlclass serailization to read the Xml File /// XmlTextReader reader = new XmlTextReader(filename); try { XmlSerializer serializer = new XmlSerializer(typeof(Class_name)); Class_object = (Class_name)serializer.Deserialize(reader); reader.Close(); } catch (Exception e) { reader.Close(); return; } it says that "{

    A M 2 Replies Last reply
    0
    • V VCsamir

      hi friends, i am using xmlclass serailization to read the Xml File /// XmlTextReader reader = new XmlTextReader(filename); try { XmlSerializer serializer = new XmlSerializer(typeof(Class_name)); Class_object = (Class_name)serializer.Deserialize(reader); reader.Close(); } catch (Exception e) { reader.Close(); return; } it says that "{

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      VCsamir wrote:

      Order

      VCsamir wrote:

      order

      Opening and closing tags are not matching. XML tags are case sensitive.

      Arun Jacob http://codepronet.blogspot.com/

      V 1 Reply Last reply
      0
      • A Arun Jacob

        VCsamir wrote:

        Order

        VCsamir wrote:

        order

        Opening and closing tags are not matching. XML tags are case sensitive.

        Arun Jacob http://codepronet.blogspot.com/

        V Offline
        V Offline
        VCsamir
        wrote on last edited by
        #3

        hi , Opps sorry friends.. The opening and closing tags are matching i have put "//" only because to show the example..(when i was posting the same code the <> tags were getting invisible :doh: )i have tried opening the xml in iexplorer it opens fine.. Thanks .. Regards Samir

        1 Reply Last reply
        0
        • V VCsamir

          hi friends, i am using xmlclass serailization to read the Xml File /// XmlTextReader reader = new XmlTextReader(filename); try { XmlSerializer serializer = new XmlSerializer(typeof(Class_name)); Class_object = (Class_name)serializer.Deserialize(reader); reader.Close(); } catch (Exception e) { reader.Close(); return; } it says that "{

          M Offline
          M Offline
          Mirko1980
          wrote on last edited by
          #4

          You are not specifying the namespace in the XmlRoot attribute

          V 1 Reply Last reply
          0
          • M Mirko1980

            You are not specifying the namespace in the XmlRoot attribute

            V Offline
            V Offline
            VCsamir
            wrote on last edited by
            #5

            Thanks Sir !! I problem is solved.. i set the the namespace atrribute in the root!! thanks once again for being so kind.. Regrds Samir

            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