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. XML / XSL
  4. xml serialization

xml serialization

Scheduled Pinned Locked Moved XML / XSL
questioncsharpxmljsonhelp
2 Posts 2 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.
  • K Offline
    K Offline
    ksrs
    wrote on last edited by
    #1

    i created an xml file using xml serialization for a c# CLASS. BUT I GOT ALL THE FIELDS FROM THAT CLASS. HOW CAN I REMOVE UN NECESSARY ATTRIBUTES. CAN ANYBODY HELP ME PLEASE? KSRS

    D 1 Reply Last reply
    0
    • K ksrs

      i created an xml file using xml serialization for a c# CLASS. BUT I GOT ALL THE FIELDS FROM THAT CLASS. HOW CAN I REMOVE UN NECESSARY ATTRIBUTES. CAN ANYBODY HELP ME PLEASE? KSRS

      D Offline
      D Offline
      Dave Herren
      wrote on last edited by
      #2

      First, please don't shout. Second if it is class that you have created simply apply the [System.Xml.Serialization.XmlIgnoreAttribute] to the properties that you don't want to show. If it is a framework class, you need to get the data from the XMLSerializer object to an XML document object for manipulation. If this is the case and you have problems with this, please post the specifics.

      topcoderjax - Remember, Google is your friend.

      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