3 Replies - 463 Views - Last Post: 27 February 2012 - 04:45 PM Rate Topic: -----

#1 Nerfpl  Icon User is offline

  • D.I.C Head

Reputation: 43
  • View blog
  • Posts: 165
  • Joined: 15-January 12

Generate Class for/from XML

Posted 27 February 2012 - 03:15 PM

HI

I have XML file from Game editor
The way it's written is that if value is not default it appears in this XML
So i modified everything i could to non-default and i have full XML file

Now i would need to be able to read this XML file (preferably in property grid for easy values changing) and then be able to write it back into XML while preserving the non-default rule. (i know default values)

I struggle with creating proper class. Atm i know how to create class yet i don't know much about attributes etc and how to somehow link fields to XML serialization.

If you have some idea/concept it will help. I'm totally green with this.
XML attached

Attached File(s)


This post has been edited by Nerfpl: 27 February 2012 - 03:17 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Generate Class for/from XML

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6039
  • View blog
  • Posts: 23,436
  • Joined: 23-August 08

Re: Generate Class for/from XML

Posted 27 February 2012 - 03:19 PM

XML Serialization Tutorial right here.
Was This Post Helpful? 0
  • +
  • -

#3 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5436
  • View blog
  • Posts: 11,662
  • Joined: 02-June 10

Re: Generate Class for/from XML

Posted 27 February 2012 - 04:15 PM

I think jack forgot to paste in the link:
http://www.dreaminco...izing-the-data/
Was This Post Helpful? 1
  • +
  • -

#4 Nerfpl  Icon User is offline

  • D.I.C Head

Reputation: 43
  • View blog
  • Posts: 165
  • Joined: 15-January 12

Re: Generate Class for/from XML

Posted 27 February 2012 - 04:45 PM

Thanks i will look into it
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1