• cooper (unregistered)

    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.

  • Bruce Johnson (unregistered)

    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.

  • cablito (unregistered)

    "I'm packing my family and heading for the hills before it's too late."

    I felt just like that :)

  • Kyle Cordes (unregistered)

    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.

  • Mario Goebbels (unregistered)

    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.

  • FistyTheFerret (unregistered)

    Hey thats my code!

  • ShadowChaser (unregistered)

    Based on the data structure it looks like one of our competetors systems, LOL!

  • earbullet (unregistered)

    Maybe it has something to do with backward compatibility.

  • Mario Goebbels (unregistered)

    It's XML, it supports attributes since it's conception, so no, the backward compatibility thing doesn't pull.

  • Hognoxious (unregistered)

    Hey Mario, I agree. I don't think earbullet was being ironic. Not even a little bit round the edges.

  • 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.

  • Muffin (unregistered)

    Oh I know, LLLLE right?

Leave a comment on “XML?”

Log In or post as a guest

Replying to comment #:

« Return to Article