Just discovered this 6 year old gem
-
Fluent XML Parsing using C#'s Dynamic Object[^] Now, granted, probably dog slow compared to other forms, but for simple stuff where performance isn't critical, the XML structure is known, it's a good edition to the toolchest of useful stuff! Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!
-
Fluent XML Parsing using C#'s Dynamic Object[^] Now, granted, probably dog slow compared to other forms, but for simple stuff where performance isn't critical, the XML structure is known, it's a good edition to the toolchest of useful stuff! Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!
Yeah, poor performance. Also, it might work for reading, but probably not for adding. As long as you already have to know the structure/schema of the XML you might as well write specific classes to do that faster and safer.
-
Yeah, poor performance. Also, it might work for reading, but probably not for adding. As long as you already have to know the structure/schema of the XML you might as well write specific classes to do that faster and safer.
PIEBALDconsult wrote:
Also, it might work for reading, but probably not for adding.
His part 2 covers writing.
PIEBALDconsult wrote:
As long as you already have to know the structure/schema of the XML you might as well write specific classes to do that faster and safer.
I just hate backing classes that are nothing more than "mostly bags of water". But the dynamic code approach is too hard-wired for my tastes. Ugh, I guess there's no good answer, especially since I'm translating XML into DB transactions, and the XML schema and the database schema have really no similarities. Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!
-
PIEBALDconsult wrote:
Also, it might work for reading, but probably not for adding.
His part 2 covers writing.
PIEBALDconsult wrote:
As long as you already have to know the structure/schema of the XML you might as well write specific classes to do that faster and safer.
I just hate backing classes that are nothing more than "mostly bags of water". But the dynamic code approach is too hard-wired for my tastes. Ugh, I guess there's no good answer, especially since I'm translating XML into DB transactions, and the XML schema and the database schema have really no similarities. Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!
Marc Clifton wrote:
Ugh, I guess there's no good answer, especially since I'm translating XML into DB transactions, and the XML schema and the database schema have really no similarities.
Haha, leaving infamous morsels of talking for a while of yapping away.
No object is so beautiful that, under certain conditions, it will not look ugly. - Oscar Wilde