|
Trust me, it can get worse. I write plugins for an application that stores objects into XML files insisting on using the BOM flag and failing to correctly translate different string types from one format to another* when you try to use the methods intended for exactly that purpose. I thought using a library like xercesc would save me from dealing with the finer details, but in the end I needed to stream the already written xml file I created into another and insert that BOM flag manually - because for some reason Xerxesc ignored my telling him to do it for me...
Of course, all that requires to first find out there is such a thing like a BOM flag which isn't immediately obvious when you look at your created XML file with some standard editor. Then you need an editor that actually knows the difference. Then you need to know where to look that you actually have a BOM flag (or not), then you need to duckduckgo (or google if you prefer) for whatever that flag is, and how it's coded, and then you need to find out how in the world you get it written!
*choose any two from: utf8, utf16, wchar_t*, CString (MFC), XMLCh* (which is simply an unsigned short "string")
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
Best regards,
to your question "is anyone actively using XML as a data transport format?" I hope the answer is negative, because it is easier for the transport of data to use JSON. ;)
Another thing is to continue using XML vocabularies, e.g. UBL from oasis-open.org, to generate electronic documents, which have dematerialized commercial documents and especially commercial documents for electronic businesses; the evidence of the commercial transaction is the XML object, and this evidence is regulated and recognized by the authorities of the countries, who give legal effects to the artifacts and trust in their use to the market when they use digital signatures that are also legally recognized. - Colombia uses ubl-Invoice and other documents, digitally signed, as securities that circulate in the market for the sale of "discounted invoices", a type of factoring, and authenticity, integrity and non-repudiation are protected by the legislation, and the availability is protected by a State entity through public storage services and an approach to the time-stamp; in the future these dematerialized documents will be registered and made available in decentralized blockchain services, and rules will be designed in smart contracts that will be based on conditions written in a formal XML document, stored in the syntax and semantics of the chosen vocabulary, and thanks To techniques such as XAdES-EPES from etsi.org, the Merkle trees of the b lockchain will be reinforced with the cryptographic summaries (sha-2, sha-3,…) used for the digital signature, and the PKI + PKC of the blockchain nodes will be able to be reinforced by means of digital certificates from CAs recognized in legal jurisdictions, well defined. - Colombia and other countries of the American continent, and the European Union process many millions of XML documents daily, with vocabularies or with their own XSD schemas.
|
|
|
|
|
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
|
|
|
|