|
Re: [xml-dev] What is the use of non-leafElement' VALUE ?
|
[
Lists Home |
Date Index |
Thread Index
]
Saha,
Easy: Consider the following markup:
<book>
<title>Some Useful Stuff</title>
<chapter>
<para>This demonstrates the value of
<emph>mixed</emph> content.</para>
</chapter>
</book>
There is real meaning associated with having "value" in the
<para> element other than the "value" contains in the
sub-element <emph>.
'Nuff said,
Jim
At 5/26/2005 02:00 PM, Saha Rabindra N wrote:
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)
========================================================================
Jim Melton --- Editor of ISO/IEC 9075-* (SQL)
Phone: +1.801.942.0144
Co-Chair, W3C XML Query WG; F&O (etc.)
editor Fax : +1.801.942.3345
Oracle Corporation Oracle
Email: jim dot melton at oracle dot com
1930 Viscounti Drive Standards email: jim
dot melton at acm dot org
Sandy, UT 84093-1063
USA Personal email:
jim at melton dot name
========================================================================
= Facts are facts. But any opinions expressed are the
opinions =
= only of myself and may or may not reflect the opinions of
anybody =
= else with whom I may or may not have discussed the issues at
hand. =
========================================================================
|
|
|
|
|