OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]

Some people use a single text node to represent an object's "most 
obvious" value but include child elements as well. I'm not a big fan of 
this, but it gets done. For example:

    <Author>
       Ronald Bourret
       <Address>...</Address>
       <email>...</email>
       <Website>..</Website>
    </Author>

-- Ron

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.





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS