[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Lessons learned from the XML experiment
- From: "Timothy W. Cook" <tim@mlhim.org>
- To: Uche Ogbuji <uche@ogbuji.net>
- Date: Thu, 14 Nov 2013 16:00:31 -0200
On Thu, Nov 14, 2013 at 3:04 PM, Uche Ogbuji <uche@ogbuji.net> wrote:
...
> Although I'd never design XML like that. What on earth is wrong with the
> following?
>
>>
>> <person>
>> <employer>
>> <name>Megaco</name>
>> </employer>
>> <name>Fred Blogs</name>
>> <person>
>
>
> That's just as easy to process, and has the bonus of being easier to read.
>
Now, send that to someone else. Which of the several definitions of
'person' and 'employer' would you expect them to use?
Your XML file has no semantic context. Therefore they are free to
interpret it as they wish, not necessarily how you meant it.
--
MLHIM VIP Signup: http://goo.gl/22B0U
============================================
Timothy Cook, MSc +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]