Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Basic XML question

From: "mlt" <asdf@---.--->
To: NULL
Date: 7/10/2009 11:12:00 PM
It seems that nodes can have different definitions:

  <box>
        <spec>12</spec>
        <spec>13</spec>
  </box>
  <box>
       <spec id="BA" value="short"/>
       <spec id="BB" value="thin"/>
  </box>

1) The first box node contains two nodes without attributes that is 
"closed":         <spec>...</spec>
 - these kind of nodes only seems to have a "textContent"

2) The second box node contains two nodes with two attributes that is "open" 
<spec ..... />
 - These nodes does not have a "textContent"

What are these different ways of defining nodes called? And when is it good 
to use the one instead of the other? 



transparent
Print
Mail
Like It
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.

.
.

transparent

transparent