|
If you start with an XML or XSD file there is a command line tool to generate code. XSD.exe.
https://docs.microsoft.com/en-us/dotnet/standard/serialization/xml-schema-def-tool-gen
I have used this many times with little hassle.
Alan
|
|
|
|
|
I remember when XML was new and how it was hyped to be the best thing since sliced bread. Then I used it for a database / C# project ... and decided never to use it again! (It didn't help that the C# class libraries for this sort of thing were utterly naff in C# 1.0). I have found no desirable use for it since (don't get me wrong I am sure it is useful ... in some distant galaxy ...).
|
|
|
|
|
I use .net DataContractSerializer which I find very easy to use. So why convert to Json?
|
|
|
|
|
one of my first jobs as a developer, I had xml in everything, it grew (from the early 2000's) from just needing a configuration file that I could control the output to being used in everything. by the time of leaving that job after 18 years, my library for dealing with XML in communications from screen layouts to configuration files grew pretty vast.
At the next job (never done any web dev before this) I was introduced to Json data. although, I would prefer this for communication transport if I had to go back to that old job, I would likely stay with XML for screen layouts and (some) configuration files.
Json doesn't take care of everything I would like, but YAML does look interesting in how it treats object references, where two parent objects might have a common reference to a shared object.
my current job has introduced me to more new concepts that I wouldn't have been exposed to in the last couple jobs. it's odd after spending so long at my first job I still think back to what I could have done better with my current knowledge.
|
|
|
|
|
Hi All(or Griff),
There seems to a lack of posters today, or am I imaging it? Thanks to Griff theres something to read at lunch!
Glenn
|
|
|
|
|
Yeah, auto premiums are what I like to read about at lunch too.
|
|
|
|
|
|
Wow, is that what passes for art these days? The first screenful are cr@p! Scrolling down didn't improve things at all.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Well, some would call it "variations on a theme" I guess
|
|
|
|
|
And you can't zoom in to get a better look at the images either.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
Luckily.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Agreed.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Hi Glenn, What a lovely morning! I've just been cursed at by the sr. partner (after working late yesterday and early this morning) because I gave her exactly what she asked for and it's still not what she wants. Apparently, I have a bad attitude.
In the meantime, I have at least 3-4 customer issues to deal with today. (mostly Covid related)
As usual, everybody needs something, and I'm the only one here who knows what is going on.
"Go forth into the source" - Neal Morse
"Hope is contagious"
|
|
|
|
|
Ah! A normal day for you.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Just making sure some other s*d was working! What users want or think want verus what they need/ require been there too many times I think tomorrows going to fun, three of us need to stand 2 M apart in a 1.5 M room to witness one of our widgets in a torture test!
|
|
|
|
|
...curled up in a ball hating XML...
cheers
Chris Maunder
|
|
|
|
|
You really have a downer on XML ( quite rightly )
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
Been there, done that, we all have at one time or another.
|
|
|
|
|
I just checked and according to Online Sources1 car accidents halved in 2020 due to Covid and lockdown.
Would anyone care to bet that will result in premiums dropping this year?
1 So it must be true.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I will bet against that! they might drop by a whole .05%
To err is human to really elephant it up you need a computer
|
|
|
|
|
The premiums will probably rise due to "COVID-related expenses".
Heads, they win, tails we lose.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Mine gave me 15% lower premium
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
Mine dropped massively, but only because I switched providers.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I see insurance companies starting to push more of the "per mile" type of coverage.
When mileage picks up again, people may wind up paying more.
|
|
|
|
|
Bring it on. I've been working from home since 2007 - I bought my car brand new in 2006. It's still under 89,000 km.
|
|
|
|