Comment On XML?

I've been working quite a bit XML lately, so this submission from Simon naturally piqued my interest. We're told that this datastructure is a pivotal part of a system and the developer behind it is adamant against using a more normalized structure. [expand full text]
« PrevPage 1Next »

re: XML?

2004-07-06 14:04 • by cooper
Yeah. The only reason I could come up with for doing that is he was too lazy to DTD or Schema validatee the doc to make sure the requisite data is there.

re: XML?

2004-07-06 14:14 • by Bruce Johnson
You're looking for justification about the developers actions?????? When the risk of row1col5 is extreme!!!! Not to mention row2col5!! There are more important things to be worrying about here then justification! I'm packing my family and heading for the hills before it's too late.

re: XML?

2004-07-06 14:38 • by cablito
"I'm packing my family and heading for the hills before it's too late."

I felt just like that :)

re: XML?

2004-07-06 14:41 • by Kyle Cordes
The thing that befuddles me is that this weblog post taunts me that the author is "really enjoying the comments posted that justify the actions of the developer", but doesn't tell me where I can go to enjoy those comments myself.

re: XML?

2004-07-06 15:44 • by Mario Goebbels
I'm more interested in seeing the code snippets that parse that XML.

for(int i = 1; i <= 5; i++)
for(int j = 1; j <= 5; j++)
{
...
XmlNode xmlNode = xmlDoc.SelectSingleNode("/riskappetite/row"+i+"col"+j);
...
}

Or even worse...

while(xmlReader.Depth == 1)
{
switch(xmlReader.LocalName)
{
case "row1col1":
...; break;
case "row1col2":
...; break;
case "row1col3":
...; break;
...
}
}

Wouldn't be surprised. Actually, those two attempts are still too optimized.

re: XML?

2004-07-06 19:13 • by FistyTheFerret
Hey thats my code!

re: XML?

2004-07-06 22:22 • by ShadowChaser
Based on the data structure it looks like one of our competetors systems, LOL!

re: XML?

2004-07-07 11:10 • by earbullet
Maybe it has something to do with backward compatibility.

re: XML?

2004-07-07 11:24 • by Mario Goebbels
It's XML, it supports attributes since it's conception, so no, the backward compatibility thing doesn't pull.

re: XML?

2004-07-07 16:40 • by Hognoxious
Hey Mario, I agree. I don't think earbullet was being ironic. Not even a little bit round the edges.

Re: XML?

2011-10-27 15:01 • by Not extreme enough (unregistered)
Mildly amused:
Converting to one character shows:
LMHHE
LMHHE
LLMHH
LLLMH
LLLLM

The first row of "Low","Moderate","High","High","Extreme" seems out of place with the pattern.
More fitting would be:
<row1col1>Moderate</row1col1>
<row1col2>High</row1col2>
<row1col3>High</row1col3>
<row1col4>Extreme</row1col4>
<row1col5>Extremely Extreme</row1col5>

MHHEE
LMHHE
LLMHH
LLLMH
LLLLM

And then anyone can predict what row6 will be.

Re: XML?

2012-01-16 17:44 • by Muffin (unregistered)
Oh I know, LLLLE right?
« PrevPage 1Next »

Add Comment