Altova Mailing List Archives


RE: [xml-dev] XML Designing Problems.

From: "Michael Kay" <michael.h.kay@--------.--->
To: "'Rajesh AVRS'" <rajesh.ram@-----.--->,<xml-dev@-----.---.--->
Date: 2/8/2002 9:06:00 AM
Hi All,
   
  I have an xml document that looks 
  like this.
   
  <XML>
      
  <XYZ> Value of xyz 
  </XYZ>
      
  <Children1>
          <ABC> Value of 
  Element1 </ABC>
          <XYZ> 
  Value for this xyz </XYZ>
      
  </Children1>
  </XML>
   
  As you can see, the element XYZ 
  is being used twice, once as the direct child of the root and another as 
  children for the element 'Children1'.
   
  My Questions:
   
  1) Is this an acceptible design 
  for the document?
  2) Is there any 
  specification that states that XML document shouldn't have duplicate elements 
  like this? 
   
   
  Using the same element in two different places is 
  fine, many documents use <title> both within a section and a 
  subsection.
   
  But 
  you shouldn't use <XML> as an element name, it's a reserved 
  name.
   
  
  Michael Kay
Software AG
home: 
  Michael.H.Kay@n...
work: Michael.Kay@s...

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.