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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Creating Enums for XML-Elements using C#

Creating Enums for XML-Elements using C#

Scheduled Pinned Locked Moved C#
helpquestioncsharpxml
3 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.
  • M Offline
    M Offline
    Muecahit Goeksu
    wrote on last edited by
    #1

    Hello, I'm a student to software developing and my problem is as following: I have to create an xml which fills the tasks, ressources, etc. for MSProject2003. Now, after I could get the xml started proper in MSPj, i have to replace the Tasks where only numbers are defined to make it much better readable. I have to use enums but project doesn't have the enums i need, so i have to create my own!! How can i create this enums and use them the right way??? Thanks for help! -- modified at 5:18 Thursday 6th April, 2006

    R 1 Reply Last reply
    0
    • M Muecahit Goeksu

      Hello, I'm a student to software developing and my problem is as following: I have to create an xml which fills the tasks, ressources, etc. for MSProject2003. Now, after I could get the xml started proper in MSPj, i have to replace the Tasks where only numbers are defined to make it much better readable. I have to use enums but project doesn't have the enums i need, so i have to create my own!! How can i create this enums and use them the right way??? Thanks for help! -- modified at 5:18 Thursday 6th April, 2006

      R Offline
      R Offline
      russellsoft
      wrote on last edited by
      #2

      public enum enum_name { Element1 = 0, Element2 = 1, ... ElementN = N } Or I didn't understand what do you need?..

      M 1 Reply Last reply
      0
      • R russellsoft

        public enum enum_name { Element1 = 0, Element2 = 1, ... ElementN = N } Or I didn't understand what do you need?..

        M Offline
        M Offline
        Muecahit Goeksu
        wrote on last edited by
        #3

        Thanks for the answer! got the solutio for my problem by myself when i was trying about changing my code! I didn`t know how to set the enums the right way to use it proper in my code! the answer i needed was: public enum MyEnum = 0; ... i only had to set MyEnum into the code where i needed it: (int)System.Enum.EnumUsing.MyEnum; Like I said, I´m a student to programming and learning about how to use code in proper way to write a bugless programm. However, thanks for the help!!!

        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