Oxygen XML Editor
 
[XML-DEV Mailing List Archive Home] [By Thread] [By Date]

RE: [xml-dev] What is the use of non-leafElement' VALUE ?


  • To: "'Saha Rabindra N'" <saha.rn@...>,"'XML Developers List'" <xml-dev@...>
  • Subject: RE: [xml-dev] What is the use of non-leafElement' VALUE ?
  • From: "Michael Kay" <mike@...>
  • Date: Fri, 27 May 2005 09:43:48 +0100
  • In-reply-to: <20050526200013.22385.qmail@...>
  • Thread-index: AcViKvgtLuCQ1MLgRMKNh8fWh9x98QAAOnTAABqTHGA=

Title: What is the use of non-leafElement' VALUE ?
What is the BUSINESS/Real-life meaning of
 
<para>The hands on the hall-clock pointed to half-past six in the morning. The house was a country residence in West Somersetshire, called Combe-Raven. The day was the fourth of March, and the year was eighteen-hundred and forty-six<footnote>In a letter to his friend Charles Ward, Collins put the first of many questions ...: 'What <ital>day</ital> of the <ital>week</ital> was the 4th of March 1846?... If [it] was a <ital>Saturday</ital> or a <ital>Sunday</ital>, it won't do for my purpose.'...</footnote>.</para>
 
The people who imagine that XML was designed for business (or that business is the same as real life) probably also imagine that English was designed for business.
 
The M in XML stands for Markup: XML is first and foremost a language for adding markup to text.
 
Michael Kay
http://www.saxonica.com/ 


From: Saha Rabindra N [mailto:saha.rn@...]
Sent: 26 May 2005 21:00
To: XML Developers List
Subject: [xml-dev] What is the use of non-leafElement' VALUE ?

Hi,
  I have one generic question on XML structure [XML element].
If an XML element represents an object then element's attributes would be properties of that object.
Then any subelement [be it leaf or non-leaf] would represent the hierarchy of the objects [containment].
If the element is a leaf node then that element's value will be meaning full.
BUT if the element is not a leaf node then what is the BUSINESS/Real-life meaning of having value in that element ?
My understanding is that an element's attributes and its sub-elements are enough to represent an object.

Example :
<?xml version="1.0" encoding="ISO-8859-1"?>
<employmentDetails>
 Some value
<EmployerID>097</EmployerID>
<EmploymentStatus>Active</EmploymentStatus>
<AnnualCompensation>$100000</AnnualCompensation>
</employmentDetails>

What is the business meaning of allowing element value for non-leaf element in XML W3C standards.

Thanks in advance for sharing your thoughts/inputs/ideas.


Regards,
RNS

 
The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee.
Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized.
If you are not the intended recipient please notify us immediately by returning the e-mail to the originator.(17b)
 

 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor