|
|
|
|
|
by sdumi
1000 days ago
|
|
I'm not sure I understand his example: “I need to configure this server and the server needs to know if this value is true or false.”
No, that’s bad. Don’t do that. That’s not a good use for XML.
But on the other hand, if you need to mark something bold, then XML is a great choice.I see both cases as being quite equivalent: whether the server needs to know that a value is true/false or that it needs to display something as bold feels quite the same thing, isn't it? Or does he mean that you cannot easily retrieve the value of an arbitrary XML element? Whereas to display a document you just process it sequentially and do not need to 'retrieve' arbitrary data. Is this it? |
|
This makes sense:
This does not: That should be: