THE BORE
General => The Superdeep Borehole => Topic started by: recursivelyenumerable on November 12, 2007, 07:06:51 AM
-
is there at least some way to get some more detailed information on why it's not recognizing your custom section? like, have the XML deserializer throw an exception at some point or whatever? something, anything more informative than an unexplained null result, I'm sure I failed to dot an i in one spot or another, but damned if I can spot any difference from the examples I'm seeing.
the last time I encountered error reporting this stupid was with a custom scripting language created by another programmer at our company, and it infuriated me so much I ended up rewriting the entire interpreter myself. please don't make me rewrite .net.
-
screw it, I'm putting the settings in a goddamn 100% xml-brain-damage free text file and parsing it myself. I can't believe how much time I wasted on this. I will never try to write idiomatic code again.
-
I'd check for invalid XML characters in the custom settings you added. I've seen a similar sounding error before when the XML parser failed because of that.
-
I'm not seeing any, but shouldn't OpenExeConfiguration or something complain about actual XML parsing errors?
-
is there an honest-to-Jebus valid schema for this xml, or is this the usual HURR WE PUT IT IN ANGLE BRACES N SHIT pseudo-xml that might as well be a flat text file? if so, why not use the XmlValidatingReader class and just look at the output from the async validation returned event?
-
I hate XML that is just like "who needs key value pairs when you could put the key in angle braces! this is the future!"
also an anagram of idiomatic is "am i idiot? c." which is the exchange you have with the janitor at 930 PM when you're still there debugging worthless XML.
-
hey, i love xml, but it isn't actually xml serialization if you just strcat angle braces and data and then write it straight to file
-
also as a guy who participated in the ecma iii il opcode implementation in the urt back in the early days of .net, i should add that you are welcome to rewrite it and i shall lol behind you
-
Personally I hate XML (at least as a data serialization format), period. It's an astoundingly baroque solution for a simple and well-understood problem. But I was trying to be nice and do things the ".net way".
I thought the configuration manager was supposed to generate its own schema via this magical quasi-declarative reflection shit. All the necessary specs should be there in the attributes.
XML is touted as an external format for representing data.
This is not a hard problem. All we require are two properties:
* Self-describing From the external representation one
should be able to derive the corresponding internal
representation.
* Round-tripping If one converts from an internal representation
to the external representation and back
again, the new internal representation should equal the
old.
Lisp S-expressions, for example, possess these properties.
XML has neither property. It is not always self-describing,
since the internal format corresponding to an external XML
description depends crucially on the XML Schema that is
used for validation (for instance, to tell whether data is an
integer or a string). And it is not always round-tripping,
since some pathological Schemas lack this property (for instance,
if there is a type union of integers and strings). So
the essence of XML is this: the problem it solves is not hard,
and it does not solve the problem well.
-
I used XML once after a big wind storm last year... but now I've since forgotten it. ...was learning it for some reason.
-
While working on a hobby project I read the entire W3C XSLT spec, how's that for masochism. (And I ended up deciding not to use XSLT.)
-
i've read a lot -- a LOT -- of ietf drafts and specs. admittedly, it's my job, but still, it's not THAT unpleasant
i find reading ayn rand or transcriptions of ron paul stump speeches far more loathesome
-
XML would be a lot better if we returned to <gold>standard</gold>
-
I wouldn't compare XML to Rand/Paul, it's more like Scientology.
-
I knew there was a reason I took the networking option.
FUCK YOU FLOWCHARTS AND PSUEDOCODE
UP YOURS ALICE, SLOW AND STEADY MY ASS
-
I figured out the problem, it had nothing to do with the XML schema or with my custom section classes for that matter. I was loading the wrong file. :-[
but now I have to deal with other, equally annoying problems involving web services!